This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
[ BUILD # : 200906142201 ] [ JDK VERSION : 1.6.* ] For the following code snippet, the editor just shows up an warning where it must shows an compile error. Map<String, List<String>> status = new <String, List<String>>HashMap();
To my knowledge, this is a valid (although unusual) Java code, assuming that Map = java.util.Map and HashMap = java.util.HashMap. See JLS 15.12.2.1 which explicitely allows to use real type parameters for method invocations of methods that take no type parameters. See issue #146272 desc4. Also note that the code can be compiled using a JDK1.7 javac (although JDK1.6 javac rejects it, which was most likely a bug fixed in JDK1.7). Also, when filling a high-priority bug (P1/P2), please make sure the reason for the priority is obvious. Thanks. *** This issue has been marked as a duplicate of 146272 ***
Thanks for clarification. About bug priority, for me it looks obviously, since editor should have the same behaviour that project JDK. IMHO, if project uses some specific JDK version, editor should be consistent with it. Why I posted it as P1? It is simple, the developers just waste some time to figure out why IDE shows up different behaviour that JDK compiler... so in this case the tool just confuses the developer. Regards
As what is P1 please check these: http://wiki.netbeans.org/BugPriorityGuidelines This one would qualify as P4?