r/java • • Jan 06 '26

One step closer to Value Classes!

https://mail.openjdk.org/pipermail/porters-dev/2026-January/000844.html
181 Upvotes

118 comments sorted by

View all comments

Show parent comment

1

u/tomwhoiscontrary Jan 07 '26

If they're mutable, they can't be records either. The original question is whether there are cases where a class should be a record but not a value type.