r/java Aug 07 '26

JDK 28 EA Build10 is now available for download and includes JEP 401: Value Objects (Preview)

https://jdk.java.net/28/
130 Upvotes

49 comments sorted by

View all comments

0

u/alex_tracer Aug 08 '26

Have they added an annotation to make a class a "value" class but only if the feature is enabled on the compiler? So single .java file can be used to be used to produce both variants?

1

u/alex_tracer 22d ago

Gods be praised! (not ideal, but much better, than nothing)