JDK 26 于 2026 年 3 月 17 日 发布,这是一个非 LTS(非长期支持版)版本。上一个长期支持版是 JDK 25,下一个长期支持版预计是 JDK 29。
JDK 26 共有 10 个新特性,这篇文章会挑选其中较为重要的一些新特性进行详细介绍:
- JEP 517: HTTP/3 for the HTTP Client API (为 HTTP Client API 引入 HTTP/3 支持)
- JEP 522: G1 GC: Improve Throughput by Reducing Synchronization (G1 GC 吞吐量优化)
- JEP 516: Ahead-of-Time Object Caching with Any GC (AOT 对象缓存支持任意 GC)
- JEP 500: Prepare to Make Final Mean Final (准备让 final 真正不可变)
- JEP 526: Lazy Constants (延迟常量, 第二次预览)
- JEP 525: Structured Concurrency (结构化并发, 第六次预览)
- JEP 530: Primitive Types in Patterns, instanceof, and switch (模式匹配支持基本类型, 第四次预览)
- JEP 524: PEM Encodings of Cryptographic Objects (加密对象 PEM 编码, 第二次预览)
- JEP 529: Vector API (向量 API, 第十一次孵化)
- JEP 504: Remove the Applet API (移除 Applet API)

