Integrated: 8354447: Missing test for retroactive @SuppressWarnings("dangling-doc-comments") behavior
Archie Cobbs
acobbs at openjdk.org
Fri Jun 13 21:45:36 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.
This pull request has now been integrated.
Changeset: 0e725c6f
Author: Archie Cobbs <acobbs at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/0e725c6fb1f324b0fd17d206806b4104dc7ba767
Stats: 10 lines in 1 file changed: 9 ins; 0 del; 1 mod
8354447: Missing test for retroactive @SuppressWarnings("dangling-doc-comments") behavior
Reviewed-by: darcy
-------------
PR: https://git.openjdk.org/jdk/pull/24600
More information about the compiler-dev
mailing list