[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:38 UTC 2024


On Thu, 2 May 2024 03:51:07 GMT, Vicente Romero <vromero at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: 5951b0c9
Author:    Vicente Romero <vromero at openjdk.org>
URL:       https://git.openjdk.org/valhalla/commit/5951b0c9b57321714f18689dd3a03e5cf63d32bb
Stats:     113 lines in 2 files changed: 113 ins; 0 del; 0 mod

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

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

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



More information about the valhalla-dev mailing list