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.
The source editor indicates a "generics not supported in source 1.4" in the tooltip even when the platform used is J2SE 5 (stable release). Note that the code compiles fine.It is only the validation in the background that does not seem to consider the fact that 1.5 is being used. A screenshot is included.
Created attachment 20200 [details] Screenshot of the source editor wrongly displaying a warning
Passing to editor.
Error annotations are provided by javacore. Reassigning.
My steps how to reproduce issue: 1) run netbeans on jdk 1.4.2, 2) add 1.5 platform, 3) create project, set 1.5 platform. If I ran netbeans on 1.5, it worked correctly. Seems to me that SourceLevelQuery.getSourceLevel() does not return source level correctly.
So the problem is, that you shouldn't only change platform! You have to set also source-level. Goto project properties, select Sources catagory and set the source-level combo to 1.5. This should help you.
Reorganization of java component