RFR: 8224228: No way to locally suppress lint warnings in parser/tokenizer or preview features
Archie Cobbs
acobbs at openjdk.org
Thu Jan 23 22:57:27 UTC 2025
On Wed, 22 Jan 2025 16:15:40 GMT, Archie Cobbs <acobbs at openjdk.org> wrote:
> This PR updates the `DeferredLintHandler` so that deferred warnings can be registered during parsing, before any `JCTree` nodes have been created, and it uses this new capability to update the `"preview"` and `"text-blocks"` Lint warnings so that they can be suppressed via `@SuppressWarnings` annotations. More details are provided in additional comments.
Note: Rebasing this PR on #23281 which should be reviewed first.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23237#issuecomment-2611179485
More information about the compiler-dev
mailing list