RFR: 8224228: No way to locally suppress lint warnings in parser/tokenizer or preview features [v12]
Archie Cobbs
acobbs at openjdk.org
Tue Feb 18 03:57:41 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.
>
> Note: This PR depends on (i.e., includes and extends) these other "cleanup" PR's:
> * #23167
> * #23281
> * #23400
> * #23669
Archie Cobbs has updated the pull request incrementally with four additional commits since the last revision:
- Remove unneeded end position tracking.
- Merge branch 'JDK-8350212' (end positions sub-task) into JDK-8224228.
- Add end position for variables coming from variableDeclaratorId().
- Track source end positions of declarations that support @SuppressWarnings.
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/23237/files
- new: https://git.openjdk.org/jdk/pull/23237/files/65577822..8ac827ce
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=23237&range=11
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=23237&range=10-11
Stats: 161 lines in 3 files changed: 140 ins; 4 del; 17 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