RFR: 8345263: Make sure that lint categories are used correctly when logging lint warnings [v2]
Archie Cobbs
acobbs at openjdk.org
Fri Dec 6 15:48:39 UTC 2024
On Fri, 6 Dec 2024 10:59:19 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> What would be better, IMHO, is to investigate an automate way to e.g. enhance something like CheckExamples to automatically test for suppression of lint warnings.
Indeed... and I've already got a [precursor](https://github.com/archiecobbs/jdk/blob/suppression/test/langtools/tools/javac/lint/SuppressionWarningTest.java) which could serve as a starting point for something like that. What's missing in the precursor is automatic verification that _every_ lint warning is tested, since until this PR that was impractical. But with this PR we can now enumerate all the `LintWarning`'s, so it would be easy to automatically verify we have complete coverage. Of course, we'd also have to add all the missing warnable code examples, which is not hard but somewhat tedious. Let me know if you are interested in putting something together, I'm happy to help.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/22553#discussion_r1873538017
More information about the compiler-dev
mailing list