[lworld] Integrated: 8331461: [lworld] javac is generating a class file with the Preload attribute but with minor version '0'

Vicente Romero vromero at openjdk.org
Thu May 2 03:56:37 UTC 2024


if we compile:

value class Val {}   and:

class Ident {
    Val val;
}

as in:
`javac -d out --enable-preview -source 23 myTests/Val.java myTests/Ident.java`

Ident.class will have a Preload attribute but its minor version is `0` instead of `65535`, the minor version should indicate that the class file is using preview features.

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

Commit messages:
 - 8331461: [lworld] javac is generating a class file with the Preload attribute but with minor version '0'

Changes: https://git.openjdk.org/valhalla/pull/1093/files
  Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=1093&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8331461
  Stats: 113 lines in 2 files changed: 113 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/valhalla/pull/1093.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/1093/head:pull/1093

PR: https://git.openjdk.org/valhalla/pull/1093



More information about the valhalla-dev mailing list