NetBeans Improves Java Support
Written by Harry Fairhead   
Tuesday, 05 January 2021

Apache NetBeans has been updated to offer improved support for Java 14 and 15 with support for code coloring and formatting alongside handling of new Java language features by autocomplete. The release also contains VSNetBeans, an extension for Visual Studio Code.

Apache NetBeans is an IDE for Java SE, Java EE, PHP and JavaScript development with some Groovy language support. It provides editors, wizards and templates, and is cross platform.



Much of the work to the new release, NetBeans 12.2, has been to improve support for Java 14 and 15. Code coloring and formatting has been improved so that the keywords "sealed", "non-sealed", and "permits" are highlighted conforming to the existing styles of all other Java keywords. The auto-completion feature has also been improved so that it recognizes and completes for the "sealed" type, and also adds the keywords "sealed" and "non-sealed" before "class" declarations. The "permits" keyword is also supported only in the allowed location. In other words, the "permits" clause is not allowed to be put before "extends" and "implements" clause, if present.

The handling of code completion for the Record variable has also been improved, so the editor will analyze the context and then suggest choices that are reachable from the current caret position. Records have been added to Java 14 and 15 as a preview feature.

New miscellaneous Java language features have also received support; NetBeans will now show the types for chained method invocations.and will create new Class, Interface, or Enum where appropriate when you when copy and paste raw text. 

The new release also includes VSNetBeans, an Apache NetBeans Extension for Visual Studio Code. It provides full Java editing and debugging support directly in the VSCode environment. The idea is that by using VSNetBeans, developers get to use the same Java tools that are part of Apache NetBeans, in the hope that VSNetBeans will provide a new avenue for feedback to the Apache NetBeans project.

Gradle support has been improved, including automatic detection of Gradle wrapper distribution and improved Lombok support. A number of libraries including Spring, Gradle, and TestNG have also been updated.



More Information

Apache NetBeans

Related Articles

NetBeans Adds JDK 14 Support

NetBeans Is A Top-Level Apache Project

NetBeans 10 Improves JDK 11 Support But Drops C/C++ Update: Not Really

NetBeans 9 RC1 Ready to Go

New Tools In NetBeans IDE 8.1

NetBeans 8.1 beta 

Java 8 Launched With Supporting Line-Up

Getting Started With NetBeans PHP - Local Projects 

TypeScript On Netbeans



To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.


Award for Power Of Two Choices Paradigm

The researchers who introduced the Balanced Allocations framework, also known as the power of two choices paradigm, an elegant theoretical work that has had a widespread practical impact, are the late [ ... ]

JetBrains Finds Spreadsheets Still Favorites For Big Data

Given the fantastic tools available for big data analysis, the latest survey by JetBrains has found that the favorite statistical tool for analysis among respondents was.... the spreadsheet. Who'd hav [ ... ]

More News





or email your comment to:

Last Updated ( Tuesday, 05 January 2021 )