<div dir="ltr"><div dir="ltr">On Tue, Sep 27, 2022 at 4:25 PM Maurizio Cimadamore <<a href="mailto:maurizio.cimadamore@oracle.com" target="_blank">maurizio.cimadamore@oracle.com</a>> wrote:<br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I believe this is a bug in how the compiler determines effective <br>
finality. Javac does this while computing DA/DU. This is because locals <br>
that are assigned "at most once" are considered effectively final (as <br>
per the JLS).<br clear="all"></blockquote></div><div><br></div><div>FYI,</div><div><br></div><div>I just posted a PR that should fix this... any comments or suggestions appreciated.<br></div><div><br></div><div><a href="https://github.com/openjdk/jdk/pull/10856">https://github.com/openjdk/jdk/pull/10856</a></div><div><div class="gmail_quote"><div><br> </div></div><div>-Archie</div><div><br></div><div>-- <br><div dir="ltr">Archie L. Cobbs<br></div></div></div></div>