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
