Integrated: 8347646: module-info classfile missing the preview flag

Jan Lahoda jlahoda at openjdk.org
Tue Jan 14 10:26:46 UTC 2025


On Tue, 14 Jan 2025 09:27:01 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:

> Consider module-info.java like this:
> 
> module m {
>     requires transitive java.base;
> }
> 
> 
> When compiled with `--enable-preview --source 24/25`, the resulting classfile is missing the preview flag.
> 
> This PR proposes to use `Preview.checkSourceLevel` to check the source level, which marks the source to use the preview feature.

This pull request has now been integrated.

Changeset: bb93f67e
Author:    Jan Lahoda <jlahoda at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/bb93f67ea8955216e81d1aef58d0ec8bf1fc9bb1
Stats:     99 lines in 4 files changed: 81 ins; 9 del; 9 mod

8347646: module-info classfile missing the preview flag

Reviewed-by: asotona

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

PR: https://git.openjdk.org/jdk/pull/23097


More information about the compiler-dev mailing list