-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
8302293: jar --create fails with IllegalArgumentException if archive name is shorter than 3 characters #22841
base: master
Are you sure you want to change the base?
Conversation
…me is shorter than 3 characters
👋 Welcome back jpai! A progress list of the required criteria for merging this PR into |
@jaikiran 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 7 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
/label remove compiler |
Webrevs
|
@jaikiran |
Can I please get a review for this change which proposes to fix the issue noted in https://bugs.openjdk.org/browse/JDK-8302293?
As noted in the issue, when creating a temporary file during the "jar --create" operation, if the original file name is lesser than 3 characters, the temporary file creation which uses the original file's name as the temporary file name prefix, runs into an exception. The commit in this PR addresses that issue by ensuring that the temporary file name prefix is atleast 3 characters in length. Within the same file, an additional place was spotted where the code could potentially run into the same exception, so that too has been addressed in this change.
A new jtreg test has been introduced which reproduces the issue and verifies the fix.
Progress
Warning
8302293: jar --create fails with IllegalArgumentException if archive name is shorter than 3 characters
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/22841/head:pull/22841
$ git checkout pull/22841
Update a local copy of the PR:
$ git checkout pull/22841
$ git pull https://git.openjdk.org/jdk.git pull/22841/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 22841
View PR using the GUI difftool:
$ git pr show -t 22841
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/22841.diff
Using Webrev
Link to Webrev Comment