Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[eclipse-compiler] Resort sources to have module-info.java first #193

Merged
merged 1 commit into from
Feb 22, 2022

Conversation

pzygielo
Copy link
Contributor

@olamy
Copy link
Member

olamy commented Feb 16, 2022

thanks for the contribution. Can you please provide a unit test so we are sure this ordering will not be lost in case of some other changes

@pzygielo
Copy link
Contributor Author

Hi @olamy - thanks for checking.

UT for new method was added.

I tried to prepare IT, but due to getSourceFilesForSourceRoot returning HashSet I failed to prepare source tree that could reproducibly FAIL without proposed change.

I would not bother this repository with the change, as ECJ will have their fix released eventually, and I suppose it happens in very few cases +in JPMS projects only, but unfortunately I'm impacted. Just wanted to share my finding as I'm patched already 😁

@pzygielo pzygielo marked this pull request as ready for review February 22, 2022 09:31
@olamy olamy added the bug label Feb 22, 2022
@olamy olamy changed the title Resort sources to have module-info.java first [eclipse-compiler] Resort sources to have module-info.java first Feb 22, 2022
@olamy olamy merged commit 88562f7 into codehaus-plexus:master Feb 22, 2022
@pzygielo pzygielo deleted the ecj569833 branch February 22, 2022 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants