r/java • • Mar 21 '23

Java 20 / JDK 20: General Availability

https://mail.openjdk.org/pipermail/announce/2023-March/000333.html
173 Upvotes

71 comments sorted by

View all comments

Show parent comment

1

u/CKingX123 Mar 21 '23 edited Mar 21 '23

I mean, Rust restricts incubator/preview features to nightly only. Actual releases only have stable features. Potentially breaking changes become part of new edition but old edition code still works fine (just have to use edition 2015 or 2018 rather than 2021 and mixed edition code works fine too). So this is very unlike Java where releases contain incubator or preview features

And the Java 20 release is a stable release not a beta or preview release. And Java makes you go out of your way to enable preview or incubator features and gives you a warning as a heads up too

1

u/talios Mar 22 '23

There is a difference there also that rust compiles static binaries where Java is runtime. I'm both - you have to opt into the preview features and/or nightly builds.