New candidate JEP: 502: Stable Values (Preview)
Mark Reinhold
mark.reinhold at oracle.com
Wed Jan 22 15:10:06 UTC 2025
https://openjdk.org/jeps/502
Summary: Introduce an API for stable values, which are objects that
hold immutable data. Stable values are treated as constants by the
JVM, enabling the same performance optimizations that are enabled
by declaring a field final. Compared to final fields, however,
stable values offer greater flexibility as to the timing of their
initialization. This is a preview API.
- Mark
More information about the jdk-dev
mailing list