RFR: 8268611: jar --validate should check targeted classes in MR-JAR files
Jorn Vernee
jvernee at openjdk.org
Thu Dec 12 16:06:35 UTC 2024
On Thu, 12 Dec 2024 15:34:20 GMT, Christian Stein <cstein at openjdk.org> wrote:
> `release of {0} too high: {1}`
I think this is better. Probably good enough.
My concern stems from the fact that 'release' doesn't seem to be defined for _class files_. I see that the term 'release' exists, and maps to a versioned directory, or you can compile classes _for_ a certain release, But, it seems that 'the release of a class file' is a new concept here. (after all, `javac` doesn't produce class files _with_ a certain release).
Maybe: `class file {fp.entryName()} compiled for release {fp.classReleaseVersion()}, is illegal in version directory {fp.mrversion()}`
(This is perhaps somewhat terse, but `javac` sets the precedent for that. A user could find out _why_ the version is illegal by referencing the jar file spec).
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/22103#discussion_r1882434374
More information about the compiler-dev
mailing list