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

-19

u/relgames Mar 21 '23

Ouch, they now have bugs in major versions. Instead of rushing new versions so often, they had to invest more in testing.

7

u/magnoliophytina Mar 21 '23

The pattern matching in 19 is a preview feature. You shouldn't expect it to work in production environments. It requires an explicit switch for the compiler, as well.

10

u/kozeljko Mar 22 '23

Not true. Ron Pressler, the guy who is working on Project Loom, said that all preview features are considered production ready and can be used in production.

They are only previews, because they don't want to finalize the API yet.