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

David Beaumont duke at openjdk.org
Fri Feb 13 21:06:40 UTC 2026


New implementation of improved JImageTask error message using string matching to detect the "version mismatch" error without needing code changes in the library.

Added tests for the error message and other ways in which the jimage file can be corrupt.

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

Commit messages:
 - 8372301: Improve error message for jimage command line tool regarding version mismatch

Changes: https://git.openjdk.org/jdk/pull/29723/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29723&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8372301
  Stats: 190 lines in 4 files changed: 185 ins; 3 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/29723.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29723/head:pull/29723

PR: https://git.openjdk.org/jdk/pull/29723


More information about the core-libs-dev mailing list