RFR: 8372301: Improve error message for jimage command line tool regarding version mismatch [v3]

David Beaumont duke at openjdk.org
Thu Jan 29 14:32:08 UTC 2026


On Tue, 13 Jan 2026 20:31:16 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

> > I wonder if it could throw a more specific mismatch exception for this case so that the jimage tool can handle, and translate into something that includes a path to itself.
> 
> Following Alan's suggestion, keep the exception message concise so JImage tool can recognize it and produce a full error message with context.

I see, so your suggestion is to make the correct error message in the JLink tool dependent on parsing the text of the exception message from the library code?

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

PR Comment: https://git.openjdk.org/jdk/pull/28456#issuecomment-3818047632


More information about the core-libs-dev mailing list