Java 27

原始链接: https://mail.openjdk.org/archives/list/[email protected]/thread/ORGGLMN75HFEWP7YL3ZLGHLYHVIBJDYT/

JDK 27 现已正式发布并可投入生产环境使用,此前构建版本 35 已顺利通过验证。 此次发布带来了九项关键改进(JEP),其中最显著的变化是将 G1 设置为所有环境的默认垃圾回收器,并为 TLS 1.3 实现了后量子混合密钥交换。其他亮点包括默认采用紧凑型对象头、JFR 进程内数据脱敏,以及针对结构化并发和模式中的原始类型等功能提供的多项预览与孵化特性。 除了这些重大更新外,JDK 27 还包含了数千项错误修复以及数百项性能与易用性改进。甲骨文(Oracle)采用 GPL 协议授权的 OpenJDK 构建版本现已可在 [jdk.java.net/27](https://jdk.java.net/27) 获取,其他厂商的构建版本预计也将很快发布。

关于 Java 27 发布的讨论,凸显了 Java 不断发展的平台与竞争对手之间持续存在的争论。 核心观点如下: * **发布理念:** 参与者指出,与微软那种以营销为主的发布模式不同,Java 的更新侧重于渐进式的长期稳定性。六个月一次的发布节奏被广泛视为一项成功的举措,避免了过去那种长达数年的“缓慢”周期。 * **平台成熟度:** 批评者和支持者都在讨论 Java 的“冗长”与 C# 或 Kotlin 等语言“语法糖”之间的优劣。虽然一些开发者渴望扩展方法和空安全等特性,但另一些人则认为,Java 审慎且保守的方法避免了快速迭代的生态系统中常见的脆弱性。 * **企业级采用:** Java 仍然是大规模、高可靠性系统(如金融、电信)的主导力量。支持者强调,它的“乏味”是一种特性,为长期项目提供了稳定、工具完善且高性能的环境。 * **竞争格局:** 虽然 Go 和 Rust 等替代语言因启动速度快和资源开销低而受到赞誉,但参与者认为,JVM 拥有“后发优势”——即吸取他人的教训——加上其复杂的运行时(JIT、JFR、虚拟线程),使得在处理复杂、高性能的企业级工作负载时,它很难被取代。
相关文章

原文

JDK 27, the reference implementation of Java 27, is now Generally Available. We shipped build 35 as the second Release Candidate of JDK 27 on 20 August, and no P1 bugs have been reported since then. Build 35 is therefore now the GA build, ready for production use. GPL-licensed OpenJDK builds from Oracle are available here: https://jdk.java.net/27 Builds from other vendors will no doubt be available soon. This release includes nine JEPs [1]: 523: Make G1 the Default Garbage Collector in All Environments 527: Post-Quantum Hybrid Key Exchange for TLS 1.3 531: Lazy Constants (Third Preview) 532: Primitive Types in Patterns, instanceof, and switch (Fifth Preview) 533: Structured Concurrency (Seventh Preview) 534: Compact Object Headers by Default 536: JFR In-Process Data Redaction 537: Vector API (Twelfth Incubator) 538: PEM Encodings of Cryptographic Objects (Third Preview) This release also includes, as usual, hundreds of smaller enhancements and thousands of bug fixes. Thanks to everyone who contributed this release, whether by designing and implementing features or enhancements, by fixing bugs, or by testing the early-access builds. - Mark [1] https://openjdk.org/projects/jdk/27/

联系我们 contact @ memedata.com