-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
8278185: Custom JRE cannot find non-ASCII named module inside #6693
Conversation
👋 Welcome back tnakamura! A progress list of the required criteria for merging this PR into |
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.
Change looks reasonable. A regression test should be provided. Contact me directly for advice.
Yes, I think we would be good to have a test. If it's too hard using the tools then a test that uses the image reader API directly would be okay. @naotoj may have some suggestions too. |
Regression tests for |
Thank you so much for the valuable advices, Jim, Alan, and Naoto. The created test calls The upper public method, |
There is a jlink plugin test case that dynamically creates custom jimages with locale data variations. That might be of your interest: |
Thank you again for valuable information, Sato-san. One tricky part is using InMemory methods, because non-ASCII name file may not be created. |
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.
Thanks for updating the test. Looks good to me.
I might be tempted to change the test case name, as Strings
is too generic. Maybe to JImageNonAsciiNameTest.java
or similar.
@toshiona This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 112 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@JimLaskey, @naotoj) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
/integrate |
@naotoj |
Sure, I can. But I would like @JimLaskey to have a final look at it. |
Standing by |
/sponsor |
Going to push as commit fcd67a5.
Your commit was automatically rebased without conflicts. |
Could you review this fix?
Problem:
Custom JRE generated by jlink cannot find non-ASCII named modules included inside the JRE.
Cause and fix:
If module or package name was composed by ASCII then non-ASCII characters,
ImageStringsReader:stringFromByteBufferMatches() miscalculated the length of matched string. The first part of ASCII characters was missing. This patch corrected the value.
Testing:
tier1 and tier2 on Linux have no regression.
I wasn't able to create an automate test for this issue. I appreciate any advice.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/6693/head:pull/6693
$ git checkout pull/6693
Update a local copy of the PR:
$ git checkout pull/6693
$ git pull https://git.openjdk.java.net/jdk pull/6693/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 6693
View PR using the GUI difftool:
$ git pr show -t 6693
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/6693.diff