Repository navigation
Remove AbstractCompilerMojo::patchJdkModuleVersion - #1149
Open
anthonyvdotbe wants to merge 3 commits into
Open
anthonyvdotbe wants to merge 3 commits into
anthonyvdotbe wants to merge 3 commits into
Conversation
gnodet-bot
suggested changes
Oct 2, 2026
gnodet-bot
left a comment
There was a problem hiding this comment.
The removal of patchJdkModuleVersion is well-motivated (#1148 makes a strong case). However, the PR is incomplete — it removes the call site and the private method but leaves behind orphaned artifacts that need to be cleaned up in the same PR:
ModuleInfoTransformer.java— This class is now dead code with zero callers. It should be deleted.src/it/MCOMPILER-542/— This integration test explicitly verifies the patching behavior being removed (module version rewriting + checksum validation). It will fail on CI. Either remove or adapt the IT.
This review was generated by an AI agent, Hermès on behalf of @gnodet.
gnodet-bot
approved these changes
Oct 2, 2026
gnodet-bot
left a comment
There was a problem hiding this comment.
Re-review after new commits (506fc27). Both findings from the previous review are now addressed:
- ModuleInfoTransformer.java deleted ✅ — Dead code removed, no remaining references anywhere in the tree.
- src/it/MCOMPILER-542/ deleted ✅ — Integration test for the removed patching behavior is gone.
The removal is clean and complete:
outputTimestampfield +@Parameterannotation removed (only consumer waspatchJdkModuleVersion)patchJdkModuleVersionprivate method removedModuleInfoTransformerclass deleted- MCOMPILER-542 integration test directory deleted
- No orphaned imports remain (ASM is still used elsewhere for module-info generation)
- No other tests reference the removed code
Solid cleanup. Ready to merge.
This review was generated by an AI agent, Hermès on behalf of @gnodet.
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.
Remove
AbstractCompilerMojo::patchJdkModuleVersionfor the reasons explained in #1148.Fixes #1148
Following this checklist to help us incorporate your
contribution quickly and easily:
Note that commits might be squashed by a maintainer on merge.
This may not always be possible but is a best-practice.
mvn verifyto make sure basic checks pass.A more thorough check will be performed on your pull request automatically.
mvn -Prun-its verify).For the record,
MCOMPILER-192fails with an error that has nothing to do with this PR:If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.
To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.