-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8371076: jpackage will wrongly overwrite the plist file in the embedded runtime when executed with the "--app-image" option #28089
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
Conversation
…wing an exception when the requested key is not found; add toXmlConsumer(); update unit tests.
…follow-up change.
…Exception" from createInputRuntimeImage()
|
👋 Welcome back asemenyuk! A progress list of the required criteria for merging this PR into |
|
@alexeysemenyukoracle 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 72 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. ➡️ To integrate this PR with the above commit message to the |
|
@alexeysemenyukoracle The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
…k with a predefined app image.
…nd.createInputRuntimeImage() and MacHelper.createRuntimeBundle()
1375024 to
05e4409
Compare
|
@alexeysemenyukoracle Please do not rebase or force-push to an active PR as it invalidates existing review comments. Note for future reference, the bots always squash all changes into a single commit automatically as part of the integration. See OpenJDK Developers’ Guide for more information. |
…the embedded runtime when bundling predefined app image; AppImageSigner: should not attempt to sign embedded runtime bundle if it is not valid (missing). AppImagePackageTest.testEmpty test fails unless AppImageSigner is fixed.
05e4409 to
746a222
Compare
|
@alexeysemenyukoracle Please do not rebase or force-push to an active PR as it invalidates existing review comments. Note for future reference, the bots always squash all changes into a single commit automatically as part of the integration. See OpenJDK Developers’ Guide for more information. |
Webrevs
|
|
@sashamatveev PTAL |
| return findNode(keyName).filter(node -> { | ||
| switch (node.getNodeName()) { | ||
| case "true", "false" -> { | ||
| return true; |
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.
Confused. Looks like this code will return true even if value is false. You can use return Boolean.parseBoolean(node.getNodeName()). No need for switch in this case.
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.
Looks like this code will return
trueeven if value isfalse
Correct. This code filters the node by its name. If the name is true or false, it accepts it and pass further, otherwise it returns false and the function returns an empty Optional.
sashamatveev
left a comment
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.
Looks good with minor comments.
|
|
||
| import java.util.Objects; | ||
|
|
||
| public final class Slot<T> { |
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.
Can you add comment to explain why we need this class and how it is used?
sashamatveev
left a comment
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.
Looks good.
|
/integrate |
|
Going to push as commit 7c900da.
Your commit was automatically rebased without conflicts. |
|
@alexeysemenyukoracle Pushed as commit 7c900da. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Supplementary changes:
createInputRuntimeImage()andcreateRuntimeBundle()functions.MacHelper.writeFaPListFragment()to work with a predefined app image.Progress
Warning
8371076: jpackage will wrongly overwrite the plist file in the embedded runtime when executed with the "--app-image" optionIssue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/28089/head:pull/28089$ git checkout pull/28089Update a local copy of the PR:
$ git checkout pull/28089$ git pull https://git.openjdk.org/jdk.git pull/28089/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 28089View PR using the GUI difftool:
$ git pr show -t 28089Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/28089.diff
Using Webrev
Link to Webrev Comment