跳到主要内容

JDK 11 新特性概览

JEP 181: Nest-Based Access Control

Introduce nests, an access-control context that aligns with the existing notion of nested types in the Java programming language. Nests allow classes that are logically part of the same code entity, but which are compiled to distinct class files, to access each other's private members without the need for compilers to insert accessibility-broadening bridge methods.

JEP 181: 基于嵌套的访问控制

引入 nests,一种与Java编程语言中现有嵌套类型概念相一致的访问控制上下文。Nests允许逻辑上属于同一代码实体的类(尽管它们被编译为不同的类文件)相互访问彼此的私有成员,而无需编译器插入可访问性扩展的桥接方法。

JEP 309: Dynamic Class-File Constants

Extend the Java class-file format to support a new constant-pool form, CONSTANT_Dynamic. Loading a CONSTANT_Dynamic will delegate creation to a bootstrap method, just as linking an invokedynamic call site delegates linkage to a bootstrap method.

JEP 309: 动态类文件常量

扩展Java类文件格式以支持一种新的常量池形式,CONSTANT_Dynamic。加载CONSTANT_Dynamic将委托创建给引导方法,就像链接invokedynamic调用站点将链接委托给引导方法一样。

JEP 315: Improve Aarch64 Intrinsics

Improve the existing string and array intrinsics, and implement new intrinsics for the java.lang.Math sin, cos and log functions, on AArch64 processors.

JEP 315: 改进Aarch64内在函数

改进现有的字符串和数组内在函数,并在AArch64处理器上实现java.lang.Math的sin、cos和log函数的新内在函数。

JEP 320: Remove the Java EE and CORBA Modules

Remove the Java EE and CORBA modules from the Java SE Platform and the JDK. These modules were deprecated in Java SE 9 with the declared intent to remove them in a future release.

JEP 320: 移除Java EE和CORBA模块

从Java SE平台和JDK中移除Java EE和CORBA模块。这些模块在Java SE 9中被弃用,并声明计划在未来的版本中移除它们。

JEP 321: HTTP Client

Standardize the incubated HTTP Client API introduced in JDK 9, via JEP 110, and updated in JDK 10.

JEP 321: HTTP客户端

标准化在JDK 9中引入的孵化 HTTP客户端API,通过JEP 110,并在JDK 10中进行了更新。

JEP 323: Local-Variable Syntax for Lambda Parameters

Allow var to be used when declaring the formal parameters of implicitly typed lambda expressions.

JEP 323: Lambda参数的局部变量语法

允许在声明隐式类型的lambda表达式的形式参数时使用var

JEP 324: Key Agreement with Curve25519 and Curve448

Implement key agreement using Curve25519 and Curve448 as described in RFC 7748.

JEP 324: 使用Curve25519和Curve448的密钥协商

实现使用Curve25519和Curve448的密钥协商,如RFC 7748中所述。

JEP 327: Unicode 10

Upgrade existing platform APIs to support version 10.0 of the Unicode Standard.

JEP 327: Unicode 10

升级现有平台API以支持版本10.0Unicode标准

JEP 328: Flight Recorder

Provide a low-overhead data collection framework for troubleshooting Java applications and the HotSpot JVM.

JEP 328: 飞行记录器

提供一个低开销的数据收集框架,用于故障排除Java应用程序和HotSpot JVM。

JEP 329: ChaCha20 and Poly1305 Cryptographic Algorithms

Implement the ChaCha20 and ChaCha20-Poly1305 ciphers as specified in RFC 7539. ChaCha20 is a relatively new stream cipher that can replace the older, insecure RC4 stream cipher.

JEP 329: ChaCha20和Poly1305加密算法

实现ChaCha20和ChaCha20-Poly1305密码算法,具体按照RFC 7539的规定。ChaCha20是一种相对较新的流密码,可以替代较旧的不安全的RC4流密码。

JEP 330: Launch Single-File Source-Code Programs

Enhance the java launcher to run a program supplied as a single file of Java source code, including usage from within a script by means of "shebang" files and related techniques.

JEP 330: 启动单文件源代码程序

增强 java 启动器以运行作为单个 Java 源代码文件提供的程序,包括通过 "shebang" 文件 和相关技术在脚本中使用。

JEP 331: Low-Overhead Heap Profiling

Provide a low-overhead way of sampling Java heap allocations, accessible via JVMTI.

JEP 331: 低开销堆分析

提供一种低开销的方式来采样Java堆分配,通过JVMTI访问。

JEP 332: Transport Layer Security (TLS) 1.3

Implement version 1.3 of the Transport Layer Security (TLS) Protocol RFC 8446.

JEP 332: 传输层安全性 (TLS) 1.3

实现传输层安全性 (TLS) 协议的 1.3 版本 RFC 8446

JEP 333: ZGC: A Scalable Low-Latency Garbage Collector (Experimental)

The Z Garbage Collector, also known as ZGC, is a scalable low-latency garbage collector.

JEP 333: ZGC: 可扩展的低延迟垃圾收集器(实验性)

Z垃圾收集器,也称为ZGC,是一种可扩展的低延迟垃圾收集器。

JEP 335: Deprecate the Nashorn JavaScript Engine for Removal

Deprecate the Nashorn JavaScript script engine and APIs, and the jjs tool, with the intent to remove them in a future release.

JEP 335: 废弃Nashorn JavaScript引擎以便移除

废弃Nashorn JavaScript脚本引擎和API,以及jjs工具,计划在未来的版本中将其移除。

JEP 336: Deprecate the Pack200 Tools and API

Deprecate the pack200 and unpack200 tools, and the Pack200 API in java.util.jar.

JEP 336: 废弃 Pack200 工具和 API

废弃 pack200unpack200 工具,以及 java.util.jar 中的 Pack200 API。