Java EditorJDK7

Revision as of 14:38, 1 June 2010 by Jlahoda (Talk | contribs)

JDK7 Support

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

A build with additional JDK7 support can be downloaded here. In addition to the standard features mentioned above, this build currently support multicatch.

Lambda Support

An experimental build of NetBeans that supports closures can be downloaded here. To experiment with the closure syntax:

  • 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.
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