RFR: 8347831: Re-examine version check when cross linking [v4]
Henry Jen
henryjen at openjdk.org
Tue Nov 11 17:13:06 UTC 2025
On Tue, 11 Nov 2025 16:35:39 GMT, Henry Jen <henryjen at openjdk.org> wrote:
>> src/jdk.jlink/share/classes/jdk/tools/jlink/internal/JlinkTask.java line 625:
>>
>>> 623: throw new IllegalArgumentException(taskHelper.getMessage("err.jlink.version.mismatch",
>>> 624: currentRelease,
>>> 625: targetRelease));
>>
>> Would it be possible to paste in the error that the jlink user will see? (assuming jdk.debug is not set). I just want to be sure that the IllegalArgumentException isn't shown to the user.
>
> Instead of showing N/A, it is now show missing. Output is still like above in the description.
>
>
> jlink --module-path /Library/Java/JavaVirtualMachines/jdk-25.jdk/Contents/Home/jmods --add-modules java.base --output macos25
> Error: jlink build N/A-26-internal-adhoc.hjen.JDK-8347831-2026-03-17 does not match target java.base build missing
IllegalArgumentException and most others are caught in run() and showing message as an Error.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28155#discussion_r2515013456
More information about the core-libs-dev
mailing list