Oct 4, 2017

JDK 9.0 released! (but java.net is gone)

Some week ago, i downloaded jdk 9 via java.net. But this page in not available anymore:
After some searching i found the download page for the jdk: http://jdk.java.net/9/  (so java.net is not really closed...). But it is easier to download them from the official Oracle website:

$java -version
java version "9"
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)
The release note can be found here.

There you can find interesting things like:
The command line flags that were removed are:

  • -Xincgc
  • -XX:+CMSIncrementalMode
  • -XX:+UseCMSCompactAtFullCollection
  • -XX:+CMSFullGCsBeforeCompaction
  • -XX:+UseCMSCollectionPassing
JEP 291: Deprecate the Concurrent Mark Sweep (CMS) Garbage Collector
Deprecates the Concurrent Mark Sweep (CMS) garbage collector. A warning message is issued when it is requested on the command line, using the -XX:+UseConcMarkSweepGC option. The Garbage-First (G1) garbage collector is intended to be a replacement for most uses of CMS.
 My favourite is:
JEP 222: jshell: The Java Shell (Read-Eval-Print Loop)
Adds Read-Eval-Print Loop (REPL) functionality to the Java platform.
The jshell tool provides an interactive command-line interface for evaluating declarations, statements, and expressions of the Java programming language. It facilitates prototyping and exploration of coding options with immediate results and feedback. The immediate feedback combined with the ability to start with expressions is useful for education—whether learning the Java language or just learning a new API or language feature.
(See my posting jshell and swing, jshell and scripts and jshell built-in commands

No comments:

Post a Comment