r/programming • • Mar 18 '25

Java 24 has been released!

https://mail.openjdk.org/pipermail/announce/2025-March/000358.html
416 Upvotes

172 comments sorted by

View all comments

Show parent comments

2

u/ZimmiDeluxe Mar 19 '25

Those uses result in warnings as well, there are safe replacements for most of Unsafe already. It's going to be a long migration, but every journey has to start somewhere.

2

u/Somepotato Mar 19 '25

It just means eventually a ton of stuff will break unexpectedly and require users to add convoluted JVM arguments.

1

u/Ok-Scheme-913 Mar 29 '25

Which is better, it issuing a warning and failing to even start until you properly understand what's the matter, or it randomly failing to work, or even cause more serious harm during production?

0

u/Somepotato Mar 29 '25

Better is not requiring the tool that praises itself on write once run anywhere to not remove/disable major features/place them behind a flag. Java will never be able to do everything people use JNI (and the newer FFI) for out of the box. If you distribute a jar to your users, now they have to open a command line to pass a flag each time they want to run your app.

→ More replies (0)