Introduces the concept of nests, allowing classes within the same nest to access each other’s private members directly, simplifying compiler-generated access code and enhancing maintainability.
Introduces a new constant pool item CONSTANT_Dynamic, allowing delayed constant computation, supporting more flexible and efficient constant handling.
引入新的常量池项 CONSTANT_Dynamic,延迟常量的计算,支持更加灵活和高效的常量处理。
Local-Variable Syntax for Lambda Parameters (JEP 323) Lambda 参数的局部变量语法:
Allows the use of the var keyword in lambda expressions to declare parameters, providing consistency and enhancing code readability.
允许在 lambda 表达式中使用 var 关键字来声明参数,提供一致性和增强代码的可读性。
HTTP Client (Standard) (JEP 321) HTTP 客户端(标准):
Standardizes the new HTTP Client API for sending HTTP requests and receiving responses, supporting HTTP/1.1 and HTTP/2, and providing synchronous and asynchronous operations.
Removal of the Java EE and CORBA Modules (JEP 320) 移除 Java EE 和 CORBA 模块:
Removes the Java EE and CORBA modules, which have been deprecated and are used less in modern Java development.
移除了 Java EE 和 CORBA 模块,这些模块已经被弃用并且在现代 Java 开发中使用较少。
Epsilon: A No-Op Garbage Collector (JEP 318) Epsilon:无操作垃圾收集器:
Introduces a new garbage collector, Epsilon, which does not perform any memory reclamation, mainly used for performance testing and memory pressure testing.
Provides a low-overhead event collection framework, allowing the collection of diagnostic and monitoring data for analyzing and debugging Java application performance issues.