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.
- Define javac.source=1.5 in projectized.xml or some file imported by projectized.xml. - Open a projectA that import this projectized.xml - Write a test target in projectA build.xml that just print out the value of javac.source, to verify that it does take effect. - Open a java source file and try adding code with 1.5 generic syntax like: List<String> nameList = new ArrayList(); - Got syntax error red-underlining and tool-tip text of "generics are not supported in -source 1.4 (try -source 1.5 to enable generic". If I put javac.source=1.5 directly in nbproject/project.properties, I will not get the 1.5 syntax error warning red underline. However, requiring this to be done by every project is not good. We have to be able to set javac.source to a a default value for all projects in an environment.
Sorry, but for now the general baseline for NB-based modules is JDK 1.4 and if you want 1.5, you can add one line to project.properties for affected modules.