Oracle announced the release of Java SE 15, know what's new

After six months of development, Oracle announced the release of the new version of JavaSE 15 as a reference implementation that uses an open source OpenJDK project.

JavaSE 15 it is classified as a regular support version, with updates to be released until the next version. Java SE 11 should be used as the long-term support leg (LTS) and updates will be released until 2026. The previous branch of Java 8 LTS will be supported until December 2020. The next LTS release is scheduled for September 2021.

Main new features of Java SE 15

In this new version, a support function for the EdDSA RFC 8032 Signature is presented, the proposed implementation of EdDSA does not depend on hardware platforms, it is protected against side channel attacks (a constant time of all calculations is guaranteed) and it outperforms the existing ECDSA implementation written in C in terms of performance, with the same level of protection.

Another change is the experimental support for sealed classes and interfaces which they cannot be used by other classes and interfaces to inherit, extend, or undeploy.

Also highlighted in this new version of Java SE 15 is the support for hidden classes that cannot be used directly by bytecode of other classes. The key use of hidden classes is for frameworks that dynamically generate classes at runtime and use them indirectly through reflection.

The garbage collector ZGC (Z Garbage Collector) has been stabilized and recognized as ready for general use. ZGC operates in passive mode to minimize latency due to garbage collection as much as possible (downtime when using ZGC does not exceed 10 ms) and can work with small and large heaps, ranging in size from several hundred from megabytes to many terabytes.

The garbage collector Shenandoah has stabilized and recognized as ubiquitous. Shenandoah is developed by Red Hat and stands out for the use of an algorithm that reduces pause times during garbage collection when cleaning in parallel with running Java applications.

In addition, support for text blocks has been stabilized and entered in the language: a new form of literal strings They allow you to include multiline text data in your source code without using escape characters and preserving the original text formatting in the block.

On the other hand, Legacy DatagramSocket API has been reworked as the old java.net.DatagramSocket and java.net.MulticastSocket implementations have been replaced by a modern implementation that is easier to debug and maintain, and is compatible with virtual threads developed by the Loom project.

In case of a possible compatibility violation with existing code, the old implementation has not been removed and can be activated using the jdk.net.usePlainDatagramSocketImpl option.

In addition, a second experimental implementation of pattern matching is proposed in the "instanceof" operator, which lets you immediately define a local variable to access the verified value.

Finally, a second experimental implementation of the "record" keyword is also highlighted, which provides a compact form for class definitions, avoiding the need to explicitly define several low-level methods such as equals (), hashCode () and toString (), in cases where the data is stored only in fields.

Finally other changes that stand out:

  • A second draft of external memory access API is proposed
  • The Biased Locking optimization technique used by the HotSpot JVM to reduce locking overhead has been disabled and deprecated.
  • RMI activation of the declared obsolete mechanism, which will be removed in a future release.
  • Removed the Nashorn JavaScript engine, which was deprecated in Java SE 11.
  • Removed ports for Solaris OS and SPARC processors (Solaris / SPARC, Solaris / x64, and Linux / SPARC).

Si you want to know more about it about this new version. You can check the details In the following link.


Be the first to comment

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.