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 latest EA release of JDK7 includes the usage of the "diamond operator". Creating a source file with the diamond operator compiles and run fine on the command line. However, it is partially supported in Netbeans. Meaning, the project will compile using "Clean and Build". But will show syntax error in the editor and not run from within Netbeans. Even if you set the source to JDK7. java version "1.7.0-ea" Java(TM) SE Runtime Environment (build 1.7.0-ea-b72) Java HotSpot(TM) Client VM (build 17.0-b01, mixed mode, sharing) http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6840638 I was under the impression that Netbeans plugs into the JDK compiler API and therefore should automatically obtain these language changes?
The support for JDK7 features is currently planned as post 6.8. However, if you want, experimental build containing some initial NB support for JDK7 features (diamond operator, string in switch) can be found at http://bertram.netbeans.org/hudson/job/jdk7/
NetBeans.org Migration: changing resolution from LATER to WONTFIX