JDK 13 enters Rampdown Phase One

Share
  • June 14, 2019

The next phase in the JDK 13 development process is here.

JDK 13 enters Rampdown Phase One and that can mean only one thing – the next Java version is closer than you think!

The feature set is now frozen and according to the JDK Release Process (JEP 3), the stabilization repository is open for select bug fixes and late enhancements (with approval).

Please keep in mind that if you are responsible for any of the bugs on the RDP 1 candidate-bug list you should see JEP 3 for guidance on how to handle them.

For now, let’s refresh our memory and have a look at the features targeted to JDK 13.

The feature set

The next Java version will bring five features, including the much-discussed Switch Expressions (Preview).

Summary: Extend application class-data sharing to allow the dynamic archiving of classes at the end of Java application execution. The archived classes will include all loaded application classes and library classes that are not present in the default, base-layer CDS archive.

Summary: Enhance ZGC to return unused heap memory to the operating system.

Summary: Replace the underlying implementation used by the java.net.Socket and java.net.ServerSocket APIs with a simpler and more modern implementation that is easy to maintain and debug. The new implementation will be easy to adapt to work with user-mode threads, a.k.a. fibers, currently being explored in Project Loom.

Summary: Extend switch so it can be used as either a statement or an expression, and so that both forms can use either traditional case ... : labels (with fall through) or new case ... -> labels (with no fall through), with a further new statement for yielding a value from a switch expression. These changes will simplify everyday coding, and prepare the way for the use of pattern matching (JEP 305) in switch. This will be a preview language feature.

Summary: Add text blocks to the Java language. A text block is a multi-line string literal that avoids the need for most escape sequences, automatically formats the string in a predictable way, and gives the developer control over format when desired. This will be a preview language feature.

The post JDK 13 enters Rampdown Phase One appeared first on JAXenter.

Source : JAXenter