What’s new in NetBeans 10
Key to NetBeans 10 is enhanced support for Java Development Kit (JDK) 11 as well as capabilities for PHP and the JUnit 5 testing framework for Java.
For JDK 11, which arrived in September 2018, NetBeans 10.0 supports dynamic class file constants, which broadens expressivity options for language designers and compiler implementors. Other capabilities for JDK 11 include:
1. Local-variable syntax support for lambda parameters, to align the syntax of a formal parameter declaration in an implicitly typed lambda expression with the syntax of a local variable declaration.
2. Code completion for var lambda parameters.
3. Removal of Corba modules.
4. Integration with the nb-javac project to support JDK 11.
5. The project has long provided a patched version of javac Java compiler for the NetBeans Java editor.
For PHP, NetBeans 10 lets developers add trailing commas in function calls under PHP 7.3. Developers also can use the list reference assignment as well as flexible heredoc and nowdoc syntaxes. Its PHP 7.2 support includes trailing commas in list syntax, coloring for object types, and PHP version in project properties. For PHP 7.1, NetBeans 10 adds support for class constant visibility as well as multicache exception handling, nullable types, and coloring for the void and iterable keywords. The context-sensitive lexer from PHP 7.0 is supported as well.
JUnit 5.3.1 was added as a library in NetBeans, for quickly adding it to Java projects. The JUnit 5 @Testable annotation is supported, also.