« Return to Thread: [67cat] Bug at Java editor parsing

RE: [67cat] Bug at Java editor parsing

by Matthies, Niklas :: Rate this Message:

Reply to Author | View in Thread

That's an interesting issue. IMO a warning is in order for static methods and constructors. For those methods the rationale given in JLS 15.12.2.1 does no apply, because they can't be overriding a method from a supertype (just hide one, for static methods). This is true regardless of JDK version.
 
Apart from that, I don't think that it makes sense to try to be bug-compatible with Sun's JDKs.

--nm

 


From: Michel Graciano [mailto:michel.graciano@...]
Sent: Thu, 18. Jun 2009 23:31
To: netcat@...
Subject: Re: [67cat] Bug at Java editor parsing

The issue was closed as duplicated and the reason why this different behaviour happens too.
The reason is because it is acceptable for JDK 7, what looks like an error at pre jdk 7 javac. So, since IDE uses an updated javac implementation, looks like it is already fixed. The question now is if IDE should or not follow the JDK defined for the project...

Regards

On Thu, Jun 18, 2009 at 6:10 PM, Ulf Zibis <Ulf.Zibis@...> wrote:
For me on RC3, NB shows no warning, no error, but compile reports error for:
  Map<String, List<String>> status = new <String,List<String>>HashMap();

-Ulf

Am 18.06.2009 22:22, Michel Graciano schrieb:

An friend of mine just face an issue yesterday at Java editor. Take a look at issue http://www.netbeans.org/issues/show_bug.cgi?id=167336 for details, but basically some Generics scenarios just doesn't compile but the editor shows as everything is okey or just some warnings are visible.

Regards
--
Michel Graciano
Summa Technologies do Brasil Ltda.
http://www.michelgraciano.com
https://genesis.dev.java.net/
http://translatedfiles.netbeans.org/index_pt_BR.html
https://copypastehistory.dev.java.net/




--
Michel Graciano
Summa Technologies do Brasil Ltda.
http://www.michelgraciano.com
https://genesis.dev.java.net/
http://translatedfiles.netbeans.org/index_pt_BR.html
https://copypastehistory.dev.java.net/

 « Return to Thread: [67cat] Bug at Java editor parsing