RFR: 8347831: Re-examine version check when cross linking [v2]

Henry Jen henryjen at openjdk.org
Mon Nov 10 16:35:13 UTC 2025


On Sat, 8 Nov 2025 07:10:16 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> For the target runtime then finder.find("java.base") returning emptymeans the module path specified to jlink doesn't have java.base so this should be handled gracefully. With the current changes then it looks like it will fail up with NoSuchElementException, do I read this correctly?

Yes, that's same behavior as before. I agree jlink should handle java.base not in the module path gracefully, I will add another error message to handle that. Do we want that for target release.txt as well? Since that's currently throwing IllegalArgumentException.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28155#discussion_r2511227667


More information about the build-dev mailing list