JDK 24 发布了

2 天前
Ayanokouji  Ayanokouji
Features

404: Generational Shenandoah (Experimental)
450: Compact Object Headers (Experimental)
472: Prepare to Restrict the Use of JNI
475: Late Barrier Expansion for G1
478: Key Derivation Function API (Preview)
479: Remove the Windows 32-bit x86 Port
483: Ahead-of-Time Class Loading & Linking
484: Class-File API
485: Stream Gatherers
486: Permanently Disable the Security Manager
487: Scoped Values (Fourth Preview)
488: Primitive Types in Patterns, instanceof, and switch (Second Preview)
489: Vector API (Ninth Incubator)
490: ZGC: Remove the Non-Generational Mode
491: Synchronize Virtual Threads without Pinning
492: Flexible Constructor Bodies (Third Preview)
493: Linking Run-Time Images without JMODs
494: Module Import Declarations (Second Preview)
495: Simple Source Files and Instance Main Methods (Fourth Preview)
496: Quantum-Resistant Module-Lattice-Based Key Encapsulation Mechanism
497: Quantum-Resistant Module-Lattice-Based Digital Signature Algorithm
498: Warn upon Use of Memory-Access Methods in sun.misc.Unsafe
499: Structured Concurrency (Fourth Preview)
501: Deprecate the 32-bit x86 Port for Removal


https://openjdk.org/projects/jdk/24/

https://medium.com/graalvm/welcome-graalvm-for-jdk-24-7c829fe98ea1


此版本是非 lts 版本,今年 9 月份的 jdk 25 是 lts 版本


本帖不欢迎刷 jdk8 梗,都是 10 多年前的技术了,2014 年 3 月 18 日发布。
8565 次点击
所在节点   Java  Java
105 条回复
lujiaxing
lujiaxing
2 天前
你发任你发, 我用 Java 8
aptupdate
aptupdate
2 天前
我滴妈耶,都到 24 了啊?这是每年一个大版本的节奏吗?
Ayanokouji
Ayanokouji
2 天前
@aptupdate 每年两个版本,两年一个 lts 版本
iintothewind
iintothewind
2 天前
值类型真难产啊,
Java 不得不带着镣铐跳舞.
ExplodingFKL
ExplodingFKL
2 天前
不是 LTS 用不到,而且这一版没杀手级别的新特性 ...
wangtian2020
wangtian2020
2 天前
什么时候支持动态类型了我再用
letianqiu
letianqiu
2 天前
491: Synchronize Virtual Threads without Pinning 是这次最重要的更新了,virtual thread 总算是可以用了
Goooooos
Goooooos
2 天前
等 9 月线上服务升级 25 lts
dragondove
dragondove
2 天前
@ExplodingFKL aot linking 对于客户端软件算是很有用的功能了。compact object header 也是很有用的特性,虽然还是实验性的,现在也只合并了半个实现( 8 字节对象头),4 字节版本合并到 lillput 上了,还在更新支持各类 gc 之类的。对象头的缩减对于服务端程序感觉能减少 10%以上的内存占用,还能够减少 gc 压力,对性能也会有提升。
sleepybear1113
sleepybear1113
2 天前
正在 21 + Spring Boot 3.x ,等发 25 lts 再换
ovtfkw
ovtfkw
2 天前
你强任你强, 我用 Java 8
sagaxu
2 天前
@ExplodingFKL

JEP 450 内存占用减少 8-10 个百分点
JEP 491 虚拟线程首次真正可用


@wangtian2020 Groovy 和 Clojure 都支持动态类型
kzfile
2 天前
我也想用新的 jdk ,但是项目不允许
liaohongxing
2 天前
Foreign Function Interface for Java (JEP 424) , 关于 FFI 的更新怎么没有看到消息
Plutooo
2 天前
21 之前没关注过 jdk 版本的迭代,21 关注以后发现原来 jdk 的迭代这么快
Ayanokouji
2 天前
@liaohongxing https://openjdk.org/jeps/454 已经在 jdk 22 release 了
5261
2 天前
你发布归你发布,公司项目 Java8, 任谁来都不好使~谁升级谁背锅
Rever4433
2 天前
公司的项目还在 jdk8 -> jdk17 的迁移过程中
wuyiccc
2 天前
还在用 jdk8+jdk17 两个版本并行中
linquan
2 天前
不写 java ,之前写的还都是用的 jdk8 ,想问一下现在主流的版本是多少?是 17 么,vscode 的调试器貌似要求最低 17 ,感觉 jdk17 是不是和类似 cpp11 在 cpp 中的情况

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1119493

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX