jdaugherty opened a new pull request, #3084: URL: https://github.com/apache/groovy/pull/3084
A class of the default package resolved a compiled class of the default package only after the default imports, so it got java.util.* or groovy.util.* classes of the same name, while a class of the default package in the same compilation unit was found first. Look it up before the default imports, as for a class of a named package. `bugs.Groovy12555` compiles the classes once together and once with one of them compiled against the others already compiled, as an incremental build does, and compares the class files. It fails without the fix. - Jira: [GROOVY-12555](https://issues.apache.org/jira/browse/GROOVY-12555) - Reproducer, with `groovyc` and a Gradle incremental build: https://github.com/jdaugherty/groovy-default-package-resolution - Backport to `GROOVY_5_1_X`: https://github.com/jdaugherty/groovy/commit/d84100ebe6ac81c73763af11ee9d5ec2dc5c3c15, on the branch [`GROOVY-12555-5_1_X`](https://github.com/jdaugherty/groovy/tree/GROOVY-12555-5_1_X). It reproduces on 4.0.33, 5.1.3 and master. Could this be backported to 5.x once it is merged? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
