You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by gi...@apache.org on 2020/02/20 15:02:54 UTC

[netbeans-website] branch asf-site updated: Automated site publishing by Jenkins build 1163

This is an automated email from the ASF dual-hosted git repository.

git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/netbeans-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 51b5da3  Automated site publishing by Jenkins build 1163
51b5da3 is described below

commit 51b5da39dd1a887abaea916d4bdf8e4cee249530
Author: jenkins <bu...@apache.org>
AuthorDate: Thu Feb 20 15:02:50 2020 +0000

    Automated site publishing by Jenkins build 1163
---
 content/download/nb113/index.html | 64 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 64 insertions(+)

diff --git a/content/download/nb113/index.html b/content/download/nb113/index.html
index 584a2d2..99b5c3e 100644
--- a/content/download/nb113/index.html
+++ b/content/download/nb113/index.html
@@ -105,6 +105,70 @@ The LTS release of the Apache NetBeans 11 cycle is Apache NetBeans 11.0. The 11.
 <div class="paragraph">
 <p>The highlights of enhancements in the Java area are focused on support for JDK 14.</p>
 </div>
+<div class="ulist">
+<ul>
+<li>
+<p><a href="https://openjdk.java.net/jeps/359">JEP 359</a>: Records (Preview Feature)</p>
+</li>
+<li>
+<p><a href="https://openjdk.java.net/jeps/359">JEP 305</a>: Pattern Matching for instanceof (Preview Feature)</p>
+</li>
+</ul>
+</div>
+<div class="admonitionblock tip">
+<table>
+<tr>
+<td class="icon">
+<i class="fa icon-tip" title="Tip"></i>
+</td>
+<td class="content">
+<a href="https://openjdk.java.net/jeps/12">JEP 12</a> 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".
+</td>
+</tr>
+</table>
+</div>
+<div class="paragraph">
+<p>Preview features can only be used if the Java compiler&#8217;s <code>--enable-preview</code> flag is set, as shown below for Maven.</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="prettyprint highlight"><code class="language-xml" data-lang="xml">&lt;build&gt;
+   &lt;plugins&gt;
+      &lt;plugin&gt;
+          &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
+          &lt;version&gt;3.8.0&lt;/version&gt;
+          &lt;configuration&gt;
+              &lt;compilerArgs&gt;
+                    &lt;arg&gt;--enable-preview&lt;/arg&gt;
+              &lt;/compilerArgs&gt;
+         &lt;/configuration&gt;
+     &lt;/plugin&gt;
+  &lt;/plugins&gt;
+&lt;/build&gt;</code></pre>
+</div>
+</div>
+<div class="paragraph">
+<p>An example to add <code>--enable-preview</code> in Gradle:</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="prettyprint highlight"><code class="language-groovy" data-lang="groovy">tasks.withType(JavaCompile).each {
+    it.options.compilerArgs.add('--enable-preview')
+}
+
+run.jvmArgs(['--enable-preview'])</code></pre>
+</div>
+</div>
+<div class="paragraph">
+<p>Other enhancements in the Java area.</p>
+</div>
+<div class="ulist">
+<ul>
+<li>
+<p><a href="https://openjdk.java.net/jeps/330">JEP 330</a>: Launch Single-File Source-Code Programs</p>
+</li>
+</ul>
+</div>
 </div>
 </div>
 </div>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists