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.
[JDK 1.5.0 beta b26] Creating Java Main Class from template creates main class with error annotation over the main method. See first attachment for the message. Creating second and another Java Main Class creates main class with two main methods and one of them marked with the same error annotation. See second attachment for the editor screenshot. It seems to be some bug in JDK (happens from build 26), but without some testcase or at least some way how to reproduce it outside of IDE, we cannot file it to bugtraq.
Created attachment 12028 [details] scrshot of error msg
Created attachment 12029 [details] scrshot of editor
[NetBeans build 200310291900]
The problem seesm to be caused by changed signatures of java class files in new JDK. If Parser boot classpath has been set to rt.jar from JDK 1.4.2 the problem disapeared.
The root cause of the problem is incompatible changes to implementation of JSR-14 aka 'Adding Generics to Java' between 1.4.x and 1.5.0. Because 1.4.x implementation of Generics is enabled for Java parser, parser cannot run correctly with rt.jar from JDK 1.5.0.
Fixed in trunk. Generics are now disabled in Java parser.
Verified.
This sounds like a release note issue to me. If I understand correctly, users of NB 3.6 will not be able to develop java files with generics on JDK 1.4.x?
removing RELNOTE keyword