JDK/Java 17 GA
按照发布规划,JDK/Java 17 属于长期支持版本 (LTS),将会获得 8 年的技术支持,直至 2029 年 9 年。
JDK/Java 17 总共包含 14 个 JEP,具体如下:
Restore Always-Strict Floating-Point Semantics
恢复始终执行严格模式 (Always-Strict) 的浮点定义
Enhanced Pseudo-Random Number Generators
添加增强的伪随机数生成器
New macOS Rendering Pipeline
为 macOS 引入新渲染管道
macOS/AArch64 Port
支持将 JDK 移植到 macOS/AArch64 架构
Deprecate the Applet API for Removal
弃用待移除的 Applet API
Strongly Encapsulate JDK Internals
强封装的 JDK 内部 API,默认对 JDK 内部进行强封装
Pattern Matching for switch (Preview)
switch 模式匹配进入预览 (Preview) 阶段
Remove RMI Activation
移除 RMI(远程方法调用)激活机制
Sealed Classes
密封类和接口正式可用,用于限制哪些类和接口可以继承或实现它们。
Remove the Experimental AOT and JIT Compiler
移除实验性的 AOT 和 JIT 编译器
Deprecate the Security Manager for Removal
弃用待移除的安全管理器 (Security Manager)
Foreign Function & Memory API (Incubator)
外部函数和内存 API 进入孵化阶段,Java 应用程序通过该 API 能够与 Java 运行时之外的代码和数据进行互操作。
Vector API (Second Incubator)
在 JDK/Java 17 中,Vector API 已进入孵化的第二阶段,Vector API 用于表达可在支持的 CPU 架构上编译为最佳矢量硬件指令的矢量计算,以实现优于等效标量计算的性能。
Context-Specific Deserialization Filters
增加面向特定上下文的反序列化过滤器,此特性允许应用程序通过 JVM 的过滤器工厂配置特定于上下文和动态选择的反序列化过滤器。

