MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1je73yg/java_24_has_been_released/mis6m4f/?context=3
r/programming • u/NotABot1235 • Mar 18 '25
172 comments sorted by
View all comments
166
New features include the following:
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://jdk.java.net/24/
JDK 25 will be the next LTS and release in 6 months.
6 u/KawaiiNeko- Mar 18 '25 why would they restrict JNI? the new FFI API is not a replacement 4 u/Plixo2 Mar 18 '25 It is not a goal to deprecate JNI or to remove JNI from > the Java Platform.JNI and the new API will just require command line arguments. 1 u/simon_o Mar 20 '25 Kinda sad that one can't even call a simple non-mutating Win32 API without incurring the warning, because they did not ship with their own interop definitions for FFM, so everyone needs to write the definitions (unsafely) on their own.
6
why would they restrict JNI? the new FFI API is not a replacement
4 u/Plixo2 Mar 18 '25 It is not a goal to deprecate JNI or to remove JNI from > the Java Platform.JNI and the new API will just require command line arguments. 1 u/simon_o Mar 20 '25 Kinda sad that one can't even call a simple non-mutating Win32 API without incurring the warning, because they did not ship with their own interop definitions for FFM, so everyone needs to write the definitions (unsafely) on their own.
4
It is not a goal to deprecate JNI or to remove JNI from > the Java Platform.
JNI and the new API will just require command line arguments.
1 u/simon_o Mar 20 '25 Kinda sad that one can't even call a simple non-mutating Win32 API without incurring the warning, because they did not ship with their own interop definitions for FFM, so everyone needs to write the definitions (unsafely) on their own.
1
Kinda sad that one can't even call a simple non-mutating Win32 API without incurring the warning, because they did not ship with their own interop definitions for FFM, so everyone needs to write the definitions (unsafely) on their own.
166
u/NotABot1235 Mar 18 '25 edited Mar 18 '25
New features include the following:
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://jdk.java.net/24/
JDK 25 will be the next LTS and release in 6 months.