RFR: 8224228: No way to locally suppress lint warnings in parser/tokenizer or preview features
Archie Cobbs
acobbs at openjdk.org
Wed Jan 22 20:33:31 UTC 2025
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.
-------------
Commit messages:
- Fixes and cleanups.
- Merge branch 'master' into JDK-8224228
- Bug fixes.
- Merge branch 'master' into JDK-8224228
- Refactor DeferredLintHandler to handle warnings generated during parsing.
Changes: https://git.openjdk.org/jdk/pull/23237/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23237&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8224228
Stats: 729 lines in 22 files changed: 504 ins; 34 del; 191 mod
Patch: https://git.openjdk.org/jdk/pull/23237.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/23237/head:pull/23237
PR: https://git.openjdk.org/jdk/pull/23237
More information about the compiler-dev
mailing list