JDK-8287971 : Throw exception for missing values in .jpackage.xml
  • Type: Bug
  • Component: tools
  • Sub-Component: jpackage
  • Affected Version: 18,19
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-06-08
  • Updated: 2023-11-29
  • Resolved: 2022-06-21
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 19 JDK 20
19 b28Fixed 20Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
Currently when we loading .jpackage.xml we will use default values for missing xml elements such as <app-store>. This might be fine in some cases, but in some cases it will break things. For example JDK 18 does not have <app-store> element and if such image is used with JDK 19 to sign it we will use false for <app-store> which will result in incorrect signing if app image was generated with --mac-app-store.
Comments
Changeset: 70008da6 Author: Alexander Matveev <almatvee@openjdk.org> Date: 2022-06-21 21:12:21 +0000 URL: https://git.openjdk.org/jdk19/commit/70008da6b47c371c4d15162ca38e1521cd09acf9
21-06-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk19/pull/9 Date: 2022-06-13 17:01:48 +0000
13-06-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/9098 Date: 2022-06-09 01:21:30 +0000
09-06-2022