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.

Bug 173062

Summary: Netbeans does not recognize JDK7 language changes
Product: java Reporter: atehrani <atehrani>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: Windows Vista   
Issue Type: DEFECT Exception Reporter:

Description atehrani 2009-09-24 21:30:10 UTC
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?
Comment 1 Dusan Balek 2009-09-25 09:00:23 UTC
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/
Comment 2 Quality Engineering 2009-11-02 11:14:17 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX