RFR: 8347831: Re-examine version check when cross linking [v2]
Henry Jen
henryjen at openjdk.org
Fri Nov 7 16:46:04 UTC 2025
On Fri, 7 Nov 2025 10:57:54 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Henry Jen has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Use release.txt from java.base module in current and target for comparison
>
> src/jdk.jlink/share/classes/jdk/tools/jlink/internal/JlinkTask.java line 600:
>
>> 598: ModuleReference target = finder.find("java.base").get();
>> 599: String currentRelease = getReleaseInfo(current).orElseThrow(() ->
>> 600: new IllegalArgumentException("Cannot find release.txt"));
>
> I assume this is an err.jlink.version.mismatch case too. The packaged version of java.base on the module path is missing the resource file so it must be an older version, hence a mismatch.
This is for the current runtime of jlink, so this should never happen?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28155#discussion_r2504531025
More information about the core-libs-dev
mailing list