RFR: JDK-8295071: Spec Clarification : ClassFileFormatVersion: System property java.class.version | Java class format version number [v3]

Alan Bateman alanb at openjdk.org
Tue Jun 6 08:43:52 UTC 2023


On Tue, 6 Jun 2023 01:34:03 GMT, Joe Darcy <darcy at openjdk.org> wrote:

> "Latest Java class file format version recognized by the Java runtime as "MAJOR.MINOR" where MAJOR and MINOR are both formatted as decimal integers"

Okay, and linking to ClassFileFormatVersion.latest() is good.

Again, just to lobby for putting an adjective into the ClassFileFormatVersion.RELEASE_XX descriptions to make it clearer than the value is the latest version recognized rather than single version that the wording currently suggests.

> While it wouldn't be unreasonable to assume that when running under --enable-preview that the minor version was 65535, it is printed out as 0 with or without preview being enabled.
> 
> I didn't want to broach preview-ness as part of this update to either promise or document the current behavior.

You're right, I shouldn't have brought this up here.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/14305#discussion_r1219189988


More information about the core-libs-dev mailing list