<div dir="ltr"><div>Hey Vicente,</div><div><br></div>My fellow Gradle JVM Platform engineer (Octavia Togami) created a reproducer: <a href="https://github.com/octylFractal/javac-permitted-ordering-bug">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>