OpenJDK Draft PR Implements Java Value Classes for JEP 401
Original: 8317277: Java language implementation of value classes and objects by MrSimms · Pull Request #31120 · openjdk/jdk
Why This Matters
Major Java language enhancement that could improve performance and memory usage
OpenJDK contributor MrSimms submitted draft pull request #31120 implementing JEP 401 Value Classes and Objects for Java. The PR includes 2682 commits covering language implementation with companion PRs for JVM and standard library support.
The pull request implements the first preview of JEP 401: Value Classes and Objects, a significant enhancement to the Java language. The implementation is split across three separate pull requests: JDK-8317277 for Java language implementation (#31120), JDK-8317278 for JVM implementation (#31122), and JDK-8317279 for standard library implementation. Value classes represent a new type in Java that can provide memory efficiency and performance benefits by avoiding object header overhead. The draft status indicates this is still under development and review by the OpenJDK community before potential inclusion in a future Java release.