This is an automated email from the ASF dual-hosted git repository.
geertjan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans-website.git
The following commit(s) were added to refs/heads/master by this push:
new 36cd6e7 Rearranging Java section
36cd6e7 is described below
commit 36cd6e7374cac475e6ff59356a8cb4fafbc75e8b
Author: Geertjan Wielenga <[email protected]>
AuthorDate: Fri Jun 5 14:01:51 2020 +0200
Rearranging Java section
---
.../src/content/download/nb120/index.asciidoc | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/netbeans.apache.org/src/content/download/nb120/index.asciidoc
b/netbeans.apache.org/src/content/download/nb120/index.asciidoc
index f4be86e..5383ca7 100644
--- a/netbeans.apache.org/src/content/download/nb120/index.asciidoc
+++ b/netbeans.apache.org/src/content/download/nb120/index.asciidoc
@@ -45,6 +45,8 @@ The highlights of the enhancements in the Java area are
focused on support for t
=== Java Language Features
+TIP: To use the latest Java language features in the Java Editor, you'll need
to run Apache NetBeans itself on the JDK that provides those features, so that
Apache NetBeans will use the Java compiler from the JDK it runs on for code
recognition, syntax coloring, etc. In these scenarios, make sure to uninstall
nb-javac, if it is installed, and not to install and use it, when prompted, so
that the Java compiler from JDK will be used, rather than nb-javac, which does
not support the latest [...]
+
==== Java 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.
@@ -81,13 +83,7 @@ image::TextBlockToString.gif[role="left",
link="TextBlockToString.gif"]
link:https://openjdk.java.net/jeps/325[JEP 325]: Switch Expressions (Preview)
– code completion for JEP-325 preview feature for multiple case labels, as
shown below.
-==== Java 11
-
-link:https://openjdk.java.net/jeps/330[JEP 330]: Launch Single-File
Source-Code Programs -- single Java source files can be created, outside of
projects, in the Favorites window, and they can be run and debugged, if
NetBeans is running on JDK 11 or later.
-
-==== Enablement of Java Preview Features
-
-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".
+TIP: link:https://openjdk.java.net/jeps/12[JEP 12], introduced in JDK 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.
@@ -119,7 +115,9 @@ tasks.withType(JavaCompile).each {
run.jvmArgs(['--enable-preview'])
----
-TIP: To use the latest Java language features, such as the new "record"
keyword, in the Java Editor, you'll need to run Apache NetBeans itself on the
JDK that provides those features, so that Apache NetBeans will use the Java
compiler from the JDK it runs on for code recognition, syntax coloring, etc. In
these scenarios, make sure to uninstall nb-javac, if it is installed, and not
to install and use it, when prompted, so that the Java compiler from JDK will
be used, rather than nb-javac, [...]
+==== Java 11
+
+link:https://openjdk.java.net/jeps/330[JEP 330]: Launch Single-File
Source-Code Programs -- single Java source files can be created, outside of
projects, in the Favorites window, and they can be run and debugged, if
NetBeans is running on JDK 11 or later.
=== JavaFX
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists