RFR: 8351073: [macos] jpackage produces invalid Java runtime DMG bundles

Alexey Semenyuk asemenyuk at openjdk.org
Wed May 21 01:41:55 UTC 2025


On Wed, 21 May 2025 01:24:16 GMT, Alexander Matveev <almatvee at openjdk.org> wrote:

>> src/jdk.jpackage/macosx/classes/jdk/jpackage/internal/resources/MacResources.properties line 88:
>> 
>>> 86: message.codesign.failed.reason.xcode.tools=Possible reason for "codesign" failure is missing Xcode with command line developer tools. Install Xcode with command line developer tools to see if it resolves the problem.
>>> 87: message.runtime-image-invalid=Provided runtime image at "{0}" is invalid or corrupted.
>>> 88: message.runtime-image-invalid.advice=Runtime image should be valid JDK bundle or JDK image.
>> 
>> We need negative test cases for these new error conditions.
>
> Test cases are added.

Can you give a reference to a test that expects jpackage to fail with `message.runtime-image-invalid` error in the output? I can't find it.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/25314#discussion_r2099135430


More information about the core-libs-dev mailing list