JEP 401, Value Objects (Preview), has been integrated into JDK 28. It introduces identity-free class instances with only final fields, changes how == behaves for those objects, and opens the door to ...
An OpenJDK proposal would preview value classes and objects in a forthcoming version of Java. The feature would provide Java class instances that have only final fields and lack object identity. The ...