RFR: 8280866: SuppressWarnings does not work properly in package-info and module-info

Joe Darcy darcy at openjdk.java.net
Fri Jan 28 17:50:09 UTC 2022


On Fri, 28 Jan 2022 10:57:50 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:

> `@SuppressWarnings` is not handled properly in `module-info` and, after https://bugs.openjdk.java.net/browse/JDK-8280744, also not in `package-info`. This patch attempts to fix that, by correctly deferring the warnings, and the printing them at an appropriate point.

Test case looks good; thanks for fixing this.

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

Marked as reviewed by darcy (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/7266


More information about the compiler-dev mailing list