Question about preview and classfile versions
Archie Cobbs
archie.cobbs at gmail.com
Fri Jan 10 17:58:19 UTC 2025
On Fri, Jan 10, 2025 at 9:32 AM Archie Cobbs <archie.cobbs at gmail.com> wrote:
> On Fri, Jan 10, 2025 at 1:49 AM Jan Lahoda <jan.lahoda at oracle.com> wrote:
>
>> I And the "lint" here is the "global" Lint instance, that (AFAIK) never
>> suppresses anything. I.e. the condition in the "if" statement is always
>> true, I believe.
>>
> The root Lint instance doesn't include any @SuppressWarnings suppressions
> but it does include suppressions from command line flags like
> -Xlint:-preview, so the "if" statement can be false.
>
Oops - I am wrong about that. You are right - Lint.suppressedValues does
not get initialized from Xlint:-foo flags, only from @SuppressWarnings
annotations.
And that also explains my bogus test for classfile minor versions.
Thanks!
-Archie
--
Archie L. Cobbs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/compiler-dev/attachments/20250110/94f39966/attachment.htm>
More information about the compiler-dev
mailing list