<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    I just saw <a class="moz-txt-link-freetext" href="https://openjdk.org/jeps/526">https://openjdk.org/jeps/526</a><br>
    <br>
    "<span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: "DejaVu Sans", "Bitstream Vera Sans", "Luxi Sans", Verdana, Arial, Helvetica; font-size: 13.333333px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; display: inline !important; float: none;">This
      API first previewed in<span class="Apple-converted-space"> </span></span><a href="https://openjdk.org/projects/jdk/25/" style="text-decoration: none; color: rgb(102, 102, 102); font-family: "DejaVu Sans", "Bitstream Vera Sans", "Luxi Sans", Verdana, Arial, Helvetica; font-size: 13.333333px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">JDK 25</a><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: "DejaVu Sans", "Bitstream Vera Sans", "Luxi Sans", Verdana, Arial, Helvetica; font-size: 13.333333px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; display: inline !important; float: none;"><span class="Apple-converted-space"> </span>via<span class="Apple-converted-space"> </span></span><a href="https://openjdk.org/jeps/502" style="text-decoration: none; color: rgb(102, 102, 102); font-family: "DejaVu Sans", "Bitstream Vera Sans", "Luxi Sans", Verdana, Arial, Helvetica; font-size: 13.333333px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">JEP 502:
      Stable Values</a><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: "DejaVu Sans", "Bitstream Vera Sans", "Luxi Sans", Verdana, Arial, Helvetica; font-size: 13.333333px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; display: inline !important; float: none;">. <br>
      Based on experience and feedback, we here propose to revise and
      re-preview the API in<span class="Apple-converted-space"> </span></span><a href="https://openjdk.org/projects/jdk/26/" style="text-decoration: none; color: rgb(102, 102, 102); font-family: "DejaVu Sans", "Bitstream Vera Sans", "Luxi Sans", Verdana, Arial, Helvetica; font-size: 13.333333px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">JDK 26</a><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: "DejaVu Sans", "Bitstream Vera Sans", "Luxi Sans", Verdana, Arial, Helvetica; font-size: 13.333333px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; display: inline !important; float: none;">."</span><br>
    <br>
    Seems to me we should wait for that to be integrated.<br>
    <br>
    -phil.<br>
    <br>
    <div class="moz-cite-prefix">On 9/25/25 2:17 PM, Sergey Bylokhov
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:7c500b95-9137-4c34-9eef-cf33fa2814bf@amazon.com">On
      9/25/25 12:59, Philip Race wrote:
      <br>
      <blockquote type="cite">I have no general objection to this.
        <br>
        I would use it where lazy initialization will provide a clear
        benefit,
        <br>
        but not as a general replacement for final.
        <br>
      </blockquote>
      <br>
      I did not even consider using StableValue as the 'super final',
      only as a possible way to implement singletons (which we usually
      do via double-checked locking, the holder idiom, or sometimes even
      with incorrect synchronization).
      <br>
      <br>
    </blockquote>
    <br>
  </body>
</html>