-
Notifications
You must be signed in to change notification settings - Fork 238
8217527: jmod hash does not work if --hash-module does not include the target module #3039
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
base: master
Are you sure you want to change the base?
Conversation
👋 Welcome back cost0much! A progress list of the required criteria for merging this PR into |
❗ This change is not yet ready to be integrated. |
This backport pull request has now been updated with issue from the original commit. |
Webrevs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
testHashModulesPattern() was static as in the original patch, but tip has it virtual, so np afaic.
|
/approval request Fixes |
@cost0much |
I'd like to backport this fix because currently
jmod hash
command does not work on already created modules and this fixes that issue. This isn't intended behavior; nothing in Oracle documentation states this limitation, and moreover the command itself gives opaque response: there's no error message or non-zero exit, instead the command does nothing and no modules are changed after hashing.The backport isn't clean because of conflicts in
HashesTest.java
. The conflicts are due to later commits being backported first; as all mainHashesTest.java
patches on jdk17 are now backport to 11, resolution meant simply copying 17's implementation over (some differences remain likeupgradeableModule
method is in different location but otherwise its function is exactly the same). This change was ran on internal Amazon pipelines and passes jtreg tier1-4 + tck tests on the following platforms: linux x64, aarch64, x86, aarch32; macos x64, aarch64; windows x64, x86.Progress
Warning
8217527: jmod hash does not work if --hash-module does not include the target module
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk11u-dev.git pull/3039/head:pull/3039
$ git checkout pull/3039
Update a local copy of the PR:
$ git checkout pull/3039
$ git pull https://git.openjdk.org/jdk11u-dev.git pull/3039/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 3039
View PR using the GUI difftool:
$ git pr show -t 3039
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk11u-dev/pull/3039.diff
Using Webrev
Link to Webrev Comment