On Tue, 23 Sep 2025 21:49:49 GMT, Archie Cobbs <[email protected]> wrote:
> Oops! Now you get a `"suppression"` warning in JDK N.
Thanks for this explanation. I can now see what you mean in the _Different
Compiler Versions_ section of the CSR. That's some quality reasoning and
future-proofing.
I suppose, it would unnecessarily complicate the design if we stipulate that
`@SuppressWarnings("suppression")` should only emit a warning if there are no
`@SuppressWarning` in any of the _child scopes_. Note, not just ineffective
`@SuppressWarning`s, but none at all.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25167#issuecomment-3325741752