Java EditorJDK7

(Difference between revisions)
m (JDK7 Support)
(JDK7 Support)
 
(4 intermediate revisions not shown)
Line 1: Line 1:
-
=JDK7 Support=
+
=NetBeans 6.9=
The following JDK7 features are supported in NetBeans 6.9:
The following JDK7 features are supported in NetBeans 6.9:
Line 12: Line 12:
* JSR 292
* JSR 292
** exotic identifiers supported in semantic highlighting, mark occurrences and Go to Declaration
** exotic identifiers supported in semantic highlighting, mark occurrences and Go to Declaration
 +
* [http://hg.netbeans.org/jet-main/rev/3712fb402cd2 suggestion] to convert an integer constant to a different radix can also convert to binary literal
-
A build with additional JDK7 support can be downloaded [http://bertram.netbeans.org/hudson/job/jdk7/ here]. In addition to the standard features mentioned above, this build currently support [http://mail.openjdk.java.net/pipermail/coin-dev/2009-February/000003.html multicatch].
+
==NetBeans trunk/7.0==
 +
 
 +
A build with additional JDK7 support can be downloaded [http://bertram.netbeans.org/hudson/job/jdk7/ here]. In addition to the features listed above, this build supports:
 +
* [http://mail.openjdk.java.net/pipermail/coin-dev/2009-February/000003.html multicatch]
 +
** code completion works in the multicatch variable declaration
 +
** hint to join multiple catches into one multicatch if the handling code is the same
 +
** fix for the error if the multicatch variable is not final
 +
* [http://blogs.sun.com/darcy/entry/project_coin_arm_implementation automatic resource management]
 +
** currently only parser support
 +
** "covert to ARM" hint coming soon
==Lambda Support==
==Lambda Support==
An experimental build of NetBeans that supports [http://openjdk.java.net/projects/lambda/ closures] can be downloaded
An experimental build of NetBeans that supports [http://openjdk.java.net/projects/lambda/ closures] can be downloaded
-
[http://bertram.netbeans.org/hudson/job/jdk7/ here]. To experiment with the closure syntax:
+
[http://bertram.netbeans.org/hudson/job/jdk7/ here]. A demo project with the closure syntax can be instantiated from ''File/New Project.../Samples/Java/Lambda - Map-Reduce Demo''
-
* create a new J2SE project in the project, set its Java Platform to a JDK7 installation (''Project Properties/Libraries'') and its source level to '''1.7''' (''Project Properties/Sources'').
+
 
-
* when you open a file from the project, the IDE will ask you if you want to add javacrt library to classpath. Say yes. Everything is setup to experiment with the closures syntax.
+
Warning:  
 +
If a project with lambdas does not run correctly (the VM crashes), please download [http://blogs.sun.com/jrose/resource/jsr292/hs19-b01-jsr292-patch.jar binary patch] and add ''-Xbootclasspath/p:<path-to>/hs19-b01-jsr292-patch.jar'' to run.jvmargs in your project.properties.

Current revision as of 13:47, 12 October 2010

NetBeans 6.9

The following JDK7 features are supported in NetBeans 6.9:

  • strings in switch:
    • code completion updated
    • hint converting a cascade of if-elses to switch
  • diamond operator (new LinkedList<>()):
    • warning when the diamond operator is not used and could be, includes fix to remove the superfluous bounds
    • tooltip in hyperlink (Ctrl-point to the identifier) shows inferred bounds
  • java.util.Objects:
    • equals and hashcode generator (Alt-Insert, "equals() and hashCode()") uses j.u.Objects.equals/hashCode if available
  • JSR 292
    • exotic identifiers supported in semantic highlighting, mark occurrences and Go to Declaration
  • suggestion to convert an integer constant to a different radix can also convert to binary literal

NetBeans trunk/7.0

A build with additional JDK7 support can be downloaded here. In addition to the features listed above, this build supports:

  • multicatch
    • code completion works in the multicatch variable declaration
    • hint to join multiple catches into one multicatch if the handling code is the same
    • fix for the error if the multicatch variable is not final
  • automatic resource management
    • currently only parser support
    • "covert to ARM" hint coming soon

Lambda Support

An experimental build of NetBeans that supports closures can be downloaded here. A demo project with the closure syntax can be instantiated from File/New Project.../Samples/Java/Lambda - Map-Reduce Demo

Warning: If a project with lambdas does not run correctly (the VM crashes), please download binary patch and add -Xbootclasspath/p:<path-to>/hs19-b01-jsr292-patch.jar to run.jvmargs in your project.properties.

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo