| //// |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| //// |
| = Apache NetBeans 11.3 Features |
| :jbake-type: page-noaside |
| :jbake-tags: 11.3 features |
| :jbake-status: published |
| :keywords: Apache NetBeans 11.3 IDE features |
| :icons: font |
| :description: Apache NetBeans 11.3 features |
| :toc: left |
| :toc-title: |
| :toclevels: 4 |
| :syntax: true |
| :source-highlighter: pygments |
| :experimental: |
| :linkattrs: |
| |
| Apache NetBeans 11.3 is the third Apache NetBeans release outside the Apache Incubator and the link:https://cwiki.apache.org/confluence/display/NETBEANS/Release+Schedule[third release of the new quarterly release cycle]. |
| |
| TIP: The LTS release of the Apache NetBeans 11 cycle is Apache NetBeans 11.0. The 11.1, 11.2, and 11.3 releases have not been tested as heavily as the LTS release and may therefore be less stable. Use 11.3 to use the latest features and to provide feedback for the next LTS release, scheduled for April 2020. Go here to download link:/download/nb110/nb110.html[Apache NetBeans 11.0], the current LTS release. |
| |
| == Release Drivers |
| |
| === Java |
| |
| The highlights of enhancements in the Java area are focused on support for JDK 14. |
| |
| - link:https://openjdk.java.net/jeps/359[JEP 359]: Records (Preview Feature) -- syntax coloring for the new "record" keyword; Navigator shows equals, hashCode, toString, etc; and formatting support for records. |
| [.feature] |
| -- |
| image::record-keyword.png[role="left", link="record-keyword.png"] |
| -- |
| |
| |
| - link:https://openjdk.java.net/jeps/359[JEP 305]: Pattern Matching for instanceof (Preview Feature) |
| [.feature] |
| -- |
| image::ezgif.com-video-to-gif.gif[role="left", link="ezgif.com-video-to-gif.gif"] |
| -- |
| |
| TIP: link:https://openjdk.java.net/jeps/12[JEP 12] provides for a preview language or VM feature, which "is a new feature of the Java SE Platform that is fully specified, fully implemented, and yet impermanent. It is available in a JDK feature release to provoke developer feedback based on real world use; this may lead to it becoming permanent in a future Java SE Platform". |
| |
| Preview features can only be used if the Java compiler's `--enable-preview` flag is set, as shown below for Maven. |
| |
| [source,xml] |
| ---- |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>3.8.0</version> |
| <configuration> |
| <compilerArgs> |
| <arg>--enable-preview</arg> |
| </compilerArgs> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| ---- |
| |
| An example to add `--enable-preview` in Gradle: |
| |
| [source,groovy] |
| ---- |
| tasks.withType(JavaCompile).each { |
| it.options.compilerArgs.add('--enable-preview') |
| } |
| |
| run.jvmArgs(['--enable-preview']) |
| ---- |
| |
| Other enhancements in the Java area. |
| |
| - link:https://openjdk.java.net/jeps/330[JEP 330]: Launch Single-File Source-Code Programs |
| |
| |
| |