RFR: 8224228: No way to locally suppress lint warnings in parser/tokenizer or preview features [v14]
Maurizio Cimadamore
mcimadamore at openjdk.org
Fri Feb 28 18:11:55 UTC 2025
On Fri, 28 Feb 2025 18:03:07 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> > E.g. in my mental model the start/end of a "decl" is only relevant if it can have some suppression attached to it.
>
> What I mean is, one of these: https://github.com/openjdk/jdk/blob/master/src/jdk.compiler/share/classes/com/sun/tools/javac/code/DeferredLintHandler.java#L119
Ok, I think I get it -- e.g. stuff like deprecation warnings (since it's type-related) can be triggered by any variable declaration...
But... the parser doesn't know what types are (yet), so IMHO, a lot of these declarations are not very interesting?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23237#issuecomment-2691262487
More information about the compiler-dev
mailing list