RFR: 8287971: Throw exception for missing values in .jpackage.xml
Alexey Semenyuk
asemenyuk at openjdk.java.net
Tue Jun 14 18:16:03 UTC 2022
On Mon, 13 Jun 2022 17:01:48 GMT, Alexander Matveev <almatvee at openjdk.org> wrote:
> - Error will be thrown if app image is generated with another JDK version or has malformed .jpackage.xml.
> - Re-fixed as Alexey suggested in https://github.com/openjdk/jdk/pull/9098.
src/jdk.jpackage/share/classes/jdk/jpackage/internal/resources/MainResources_de.properties line 79:
> 77: warning.no.jdk.modules.found=Warnung: Keine JDK-Module gefunden
> 78:
> 79: error.foreign-app-image=Error: app-image dir ({0}) not generated by jpackage. Missing .jpackage.xml.
This error message will be misleading in case app image was generated by jpackage and adjusted after.
I'd put it as "Missing .jpackage.xml file in app-image dir ({0})."
-------------
PR: https://git.openjdk.org/jdk19/pull/9
More information about the core-libs-dev
mailing list