Java 16

Java 16 – Deprecation and Removals

Deprecation

  1. ThreadGroup methods like stop, destroy, isDestroyed, setDaemon and isDaemon methods are deprecated and will be removed in future release. These API/mechanism to destroy a threadgroup is flawed and such method which supports explicitly or automatically destroying a thread group are terminally deprecated.
  2. Signal Chaining APIs like sigset, signal are obsolete and their use is deprecated. sigaction is cross-platform and is supported API for multi-threaded processes.
  3. java.security.cert APIs representing DNs as Principal or String objects are deprecated.
  4. elliptic curves which are either obsolete or not implemented using modern formulas and techniques of SunEC provider are removed.

Removals

  1. The non-public class java.awt.PeerFixer is removed. Its purpose was to provide deserialization support of ScrollPane objects created prior JDK 1.1.1.
  2. jaotc, an experimental Java Ahead-of-Time compilation tool is removed. Experimental Java-based JIT compiler, Graal, is also removed.
  3. root certificates with weak 1024-bit RSA public keys have been removed from the cacerts keystore.

About the Author: Elavarasan PK

Technical Specialist, Intersoft Data Labs