On Thu, 12 Dec 2024 15:29:33 GMT, Christian Stein <cst...@openjdk.org> wrote:
>> User-facing help messages read: >> >> javac --help >> ... >> --release <release> >> Compile for the specified Java SE release. >> Supported releases: >> 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, >> 24, 25 >> >> >> jar --help >> ... >> --release VERSION Places all following files in a versioned >> directory >> of the jar (i.e. META-INF/versions/VERSION/) > > Maybe this reads better? `release version of {0} too high: {1}`: > > release version of META-INF/versions/9/version/Version.class too high: 25 > release version of META-INF/versions/10/version/Version.class too high: 25 > > Note that the path of the JAR entry contains the target release version > number, and `Version.class` was compiled with `javac` 25 (with `--release > 25`). Prior-art in the messages do read: error.release.value.notnumber=\ release {0} not valid error.release.value.toosmall=\ release {0} not valid, must be >= 9 error.release.unexpected.versioned.entry=\ unexpected versioned entry {0} for release {1} ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/22103#discussion_r1882383691