RFR: 8224228: No way to locally suppress lint warnings in parser/tokenizer or preview features [v3]

Archie Cobbs acobbs at openjdk.org
Thu Jan 23 23:33:26 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 incrementally with one additional commit since the last revision:

  Put back required flushing of binding pattern variable declaration.

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/23237/files
  - new: https://git.openjdk.org/jdk/pull/23237/files/877b16c2..cecb2280

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=23237&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=23237&range=01-02

  Stats: 7 lines in 1 file changed: 7 ins; 0 del; 0 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