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.
Trying to use a generic from jdk 1.5, e.g. Comparator<String> results in "try using -source 1.5". The source compiles just fine using javac directly, with no "source" option. Configuration shows I'm using JDK 1.5, AND -source 1.5 already! Code display (editor) shows a problem with the source line, again suggesting "-source 1.5". java version "1.5.0_02" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09) Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_02-b09, mixed mode)
Reassigning for evaluation.
Go to Project Properties of your project, select Sources Node and set Source Level to 1.5. I hope it helps.