RFR: 8224228: No way to locally suppress lint warnings in parser/tokenizer or preview features [v4]
Archie Cobbs
acobbs at openjdk.org
Sun Jan 26 20:10:38 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.
Archie Cobbs has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 12 commits:
- Merge branch 'master' into JDK-8224228 to fix conflict.
- Put back required flushing of binding pattern variable declaration.
- Remove Attr.flushDeferredLintHandler() which doesn't appear necessary.
- Merge branch 'JDK-8348427' into JDK-8224228
- Refactor the DeferredLintHandler API to maintain the "stack" itself.
- Add Javadoc to document a subtley in the API.
- Update DeferredLintHandler API to use JCTree instead of DiagnosticPosition.
- Fixes and cleanups.
- Merge branch 'master' into JDK-8224228
- Bug fixes.
- ... and 2 more: https://git.openjdk.org/jdk/compare/907350e9...03f08d96
-------------
Changes: https://git.openjdk.org/jdk/pull/23237/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23237&range=03
Stats: 727 lines in 22 files changed: 503 ins; 41 del; 183 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