RFR: 8354071: Add LintCategory property indicating whether @SuppressWarnings is supported

Maurizio Cimadamore mcimadamore at openjdk.org
Wed Apr 9 14:55:29 UTC 2025


On Wed, 9 Apr 2025 13:51:17 GMT, Archie Cobbs <acobbs at openjdk.org> wrote:

> The intent was for this field to represent what's actually (currently) true in the compiler - which is that `@SuppressWarnings("text-blocks")` is not supported - and then revert this part of the change when [JDK-8224228](https://bugs.openjdk.org/browse/JDK-8224228) gets fixed. But we could also do that preemptively if you prefer - just let me know.

I'm fine with either -- I just wonder if this might suggest that we will start e.g. refusing/warn `@SuppressWarnings("XYZ")` where XYZ is declared as unsuppressible. But as long as we sequence things correctly, we should be ok either way.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24529#discussion_r2035553496


More information about the compiler-dev mailing list