<div dir="ltr">Hi Glavo,<br><br>Below is my opinion. I do not know if it is right.<br><br>I believe in your scenario you are changing a lib without changing your application, right?<br><br><div>When you change from identity to value class there are other implications that are not just the constructor call. For example, synchronization. So maybe it should be considered a breaking change.<br></div><div><br></div><div><div>Another point is if you are going to change a lib in your application you should recompile your application, make tests. And recompiling would fix this particular problem given in your example.</div><div></div><div><br></div>So I do not know if  a migration solution is/(should be) necessary.</div><div><br>Regards,</div><div>Anderson.<br><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 13, 2022 at 5:53 AM Glavo <<a href="mailto:zjx001202@gmail.com">zjx001202@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Another question, will the constructor of the value/primitive class have a new migration solution?<br><div><br></div><div>For example, most of the record classes may be candidates for becoming value classes, but at least in the LW4 prototype, </div><div>making a record class as value class will break the code in other classes that call its constructor (throws InstantiationError).<br></div><div>Will this problem be solved?<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Dec 4, 2022 at 1:09 AM Brian Goetz <<a href="mailto:brian.goetz@oracle.com" target="_blank">brian.goetz@oracle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

  
  <div>
    <font size="4"><font face="monospace">Yes, but we want to arrive at
        a consistent point before updating the docs, so naturally the
        design process skates out ahead of the written collateral.</font></font><br>
    <br>
    <div>On 12/3/2022 4:38 AM, Glavo wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div>It sounds like the information I'm getting from the JEP
          docs is outdated, so there's a misunderstanding.<br>
        </div>
        <div>Do you have plans to update JEP 401?<br>
        </div>
      </div>
    </blockquote>
    <br>
  </div>

</blockquote></div>
</blockquote></div>