32

Java 13 进入 Rampdown 阶段,所有特性已冻结

 4 years ago
source link: https://www.tuicool.com/articles/i6JjArm
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

JDK 13 已经进入 Rampdown 阶段,所有特性已被冻结,不会再有新特性加入到该发布版本中。

最终的新特性有:

  • JEP 350 : Dynamic CDS Archives(动态 CDS 归档)
  • JEP 351 : ZGC:Uncommit Unused Memory(ZGC:取消未使用内存提交)
  • JEP 353 : Reimplement the Legacy Socket API(旧版 Socket API 重构)
  • JEP 354 : Switch Expressions (Preview)(预览版 Switch 表达式)
  • JEP 355 : Text Blocks (Preview)(预览版文本块)

所有这些新特性,只有“旧版 Socket API 重构”特性会直接影响未显式选择使用新特性的用户。

Switch 表达式在 JDK 12 进入初次预览后,在 JDK 13 中将重新预览。收到社区反馈后,它的语法发生了变化。现在引入了一个新的关键词 yield 来处理 Switch 块中 switch 表达式的返回值。

令人失望的是,JDK 13 的 Switch 表达式没有引入任何新特性。特别是,此版本中并不包含InfoQ 年初预测的模式匹配( Pattern Matching )。

JDK 13 的另一个预览特性是 Text Blocks ,之前称为多行字符串。该特性旨在减轻在 Java 程序中直接使用大量格式化文本的负担。

Java 13 的最终版本预计在 2019 年 9 月 17 日发布,它并不是一个长期支持版本(LTS)。它只有在发布后的 6 个月内才有资格获得 Oracle 的免费支持,并且目前还没有迹象表明其他供应商有兴趣在最初的时间表之外支持它。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK