<div dir="ltr"><div dir="ltr">On Tue, Apr 22, 2025 at 6:54 PM Chen Liang <<a href="mailto:chen.l.liang@oracle.com">chen.l.liang@oracle.com</a>> wrote:</div><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg7537803375376809831">




<div dir="ltr"><div style="font-family:"Calibri Light","Helvetica Light",sans-serif;font-size:12pt;color:rgb(0,0,0)">
However, one problem with FCB I see that can block its finalization is its lack of support for records - records must not have a superconstructor invocation, and as a result, records cannot have early construction field assignments, because without an explicit
 invocation, per JLS, the canonical constructor body will be late construction; and such a body can use "this", which makes it incompatible to simply reinterpret a canonical constructor body as in an early construction context.</div></div></div></blockquote><div><br></div></div><div class="gmail_quote gmail_quote_container">I don't claim to be an impartial observer, but in my opinion this issue should not be a show-stopper for finalization of FCB.</div><div class="gmail_quote gmail_quote_container"><br></div><div class="gmail_quote gmail_quote_container">My rationale:</div><div class="gmail_quote gmail_quote_container"><br></div><div class="gmail_quote gmail_quote_container">1. Canonical record constructors already limit what you can do before super(): namely, anything that you can do within a super() call parameter list. So this is not a new problem.</div><div class="gmail_quote gmail_quote_container"><br></div><div class="gmail_quote gmail_quote_container">2. This restriction does become more acute with strict fields, but that just means it may need to be addressed along with strict fields (i.e., later). There are simple answers, e.g., allowing a parameterless "super" keyword to demarcate the prologue/epilogue boundary, and which would syntactically mirror the parameterless constructor declaration.</div><div class="gmail_quote gmail_quote_container"><br></div><div class="gmail_quote gmail_quote_container">-Archie</div><div class="gmail_quote gmail_quote_container"><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Archie L. Cobbs<br></div></div>