Repository navigation
Add disabled IT for ECJ single-module -sourcepath bug - #550
Merged
Merged
Conversation
Reproduces eclipse-jdt/eclipse.jdt.core#5759: compiling only module-info.java with sources found through -sourcepath makes ECJ report the exported packages as missing. The IT is excluded via pomExcludes until ECJ is fixed; enabling it then just requires bumping ECJ and removing the exclusion. Part of #548.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #548.
Adds
ecj-single-module-sourcepath, an IT that compiles onlymodule-info.javawhile the other two sources are found through the source roots that plexus-compiler passes to ECJ as-sourcepath. This reproduces upstream eclipse-jdt/eclipse.jdt.core#5759: the exported packages are reported as missing because ECJ puts sourcepath sources in the unnamed module.The IT is excluded via
<pomExcludes>inplexus-compiler-its/pom.xml, with a comment linking the upstream issue and #548. When ECJ ships a fix, enable it by bumping ECJ and removing that exclusion;verify.groovythen asserts thatmodule-info.class,Base.classandUse.classare produced.No production code changes — this is a reproducer kept in-tree so the fix can be verified immediately.
Verification
mvn -B -o spotless:applyand-Dspotless.action=check spotless:check: clean.mvn -B -o verify -pl plexus-compiler-its -am(JDK 21): BUILD SUCCESS, 12 ITs passed, new IT excluded.-Dinvoker.test=ecj-single-module-sourcepath: fails with the exact upstream error, confirming the fixture reproduces the bug: