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.

netbeans

 

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.

 

netbeans

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.

Banner


Quantum Company Wins Digital Startup Contest
03/03/2024

Quantum specialists Qilimanjaro is the winner of this year's Four Years From Now competition. The award was made at this year's Mobile World Congress (MWC) in Barcelona.



JetBrains AI Assistant - A Welcome Time Saver
28/02/2024

JetBrains AI Assistant saves developers up to eight hours per week and they appreciate its help.  77% of users feel more productive, 75% express that they are happier with their IDE experien [ ... ]


More News

raspberry pi books

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Tuesday, 05 January 2021 )