JEP proposed to target JDK 25: 502: Stable Values (Preview)

Mark Reinhold mark.reinhold at oracle.com
Fri Feb 28 15:19:17 UTC 2025


The following JEP is proposed to target JDK 25:

  502: Stable Values (Preview)
       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.

Feedback on this proposal from JDK Project Committers and Reviewers [1]
is more than welcome, as are reasoned objections.  If no such objections
are raised by 20:00 UTC on Friday, 7 March, or if they’re raised and
then satisfactorily answered, then per the JEP 2.0 process proposal [2]
I’ll target this JEP to JDK 25.

- Mark


[1] https://openjdk.org/census#jdk
[2] https://cr.openjdk.java.net/~mr/jep/jep-2.0-02.html


More information about the jdk-dev mailing list