Features
Language
- JEP 409: Sealed Classes
- JEP 406: Pattern Matching for switch (Preview)
- JEP 306: Restore Always-Strict Floating-Point Semantics
- 始终严格的浮点语义,
strictfp 关键字不再需要。
Library
- JEP 356: Enhanced Pseudo-Random Number Generators
- JEP 415: Context-Specific Deserialization Filters
- JEP 414: Vector API (Second Incubator)
- JEP 412: Foreign Function & Memory API (Incubator)
- JEP 403: Strongly Encapsulate JDK Internals
- 强封装 JDK 内部 API,除了
sun.misc.Unsafe。
- JEP 382: New macOS Rendering Pipeline
- JEP 391: macOS/AArch64 Port
- 支持 Apple Silicon (M1/M2/etc)。
Removals & Deprecations
- JEP 411: Deprecate the Security Manager for Removal
- JEP 398: Deprecate the Applet API for Removal
- JEP 407: Remove RMI Activation
- JEP 410: Remove the Experimental AOT and JIT Compiler
References