RFR: 8354447: Missing test for retroactive @SuppressWarnings("dangling-doc-comments") behavior

Archie Cobbs acobbs at openjdk.org
Fri Jun 13 21:45:35 UTC 2025


On Fri, 11 Apr 2025 19:55:28 GMT, Archie Cobbs <acobbs at openjdk.org> wrote:

> This PR adds a regression test for the "retroactive" behavior of `@SuppressWarnings("dangling-doc-comments")`, that is,  the warning suppression applies to comments preceding the declaration that the annotation annotates, even though those comments are not within the lexical scope of that declaration. Previously there was no test for this behavior.

Thanks for the review!

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

PR Comment: https://git.openjdk.org/jdk/pull/24600#issuecomment-2971769650


More information about the compiler-dev mailing list