<div dir="ltr">Hi Vicente,<div><br></div><div>This is great news! Will this fix be backported to earlier JDK versions? If so, then until which version? Ideally I would expect this fix to be a part of JDK 11.<br><br>Cheers,</div><div>Przemek</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 10, 2024 at 7:02 PM Vicente Romero <<a href="mailto:vicente.romero@oracle.com">vicente.romero@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"><u></u>
<div>
Hi Przemek,<br>
<br>
The fix to the issue you reported [1] has been integrated in our
master repo. Thanks a lot for all the help tracking this very
interesting issue down,<br>
<br>
Thanks,<br>
Vicente<br>
<br>
[1] <a href="https://bugs.openjdk.org/browse/JDK-8322477" target="_blank">https://bugs.openjdk.org/browse/JDK-8322477</a><br>
[2] <a href="https://github.com/openjdk/jdk" target="_blank">https://github.com/openjdk/jdk</a><br>
<br>
<div>On 1/9/24 11:04, Vicente Romero wrote:<br>
</div>
<blockquote type="cite">
Hi Przemek,<br>
<br>
this is pretty good, thanks for the reproducer. I will update the
bug entry,<br>
<br>
Thanks,<br>
Vicente<br>
<br>
<div>On 1/9/24 03:48, Przemek Bielicki
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Hey Vicente,</div>
<div><br>
</div>
My fellow Gradle JVM Platform engineer (Octavia Togami)
created a reproducer: <a href="https://urldefense.com/v3/__https://github.com/octylFractal/javac-permitted-ordering-bug__;!!ACWV5N9M2RV99hQ!OuIjNEls9z95A5Eq458IZEjWn1nlxh3v2_wq3jYrPj61R62YNl6fUCJ_-Docq9rmUcpTVMWgk3iQLhvjhTxyZA$" target="_blank">https://github.com/octylFractal/javac-permitted-ordering-bug</a><br>
Her first analysis was: "Looking at the stacktraces, it
appears that when it's ordered properly, the subclasses of the
sealed type are visited as part of their parent; but when it's
ordered incorrectly, they're visited as part of resolving the
type of a variable somewhere else."<br>
<div>Eventually she says: "This is not in any way a Gradle
bug. It has to do with ordering of other files that use the
sealed type and its subclasses."<br>
</div>
<div><br>
</div>
<div>Can you please verify this on your end and update the
JIRA ticket with the latest findings?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Przemek</div>
</div>
</blockquote>
<br>
</blockquote>
<br>
</div>
</blockquote></div>