I am wondering if the addition of ElementType.MODULE should be rethought. When an annotation is applied to PACKAGE, it applies package-wide (and thus affecting things inside it too). For example, I can put a JAXB @XmlSchemaType annotation on a package to affect the way classes inside the package are mapped.
However, the way annotations are being implemented on MODULE, if applies just to that file -- not the entire module. But what if in the future there is an RFE for annotations to apply to the entire module? Has it already been decided that feature has no use cases? I think some pause should be given here before this feature is taken away. Cheers, Paul ---------- Forwarded message ---------- From: <jan.lah...@oracle.com> Date: Fri, Jul 8, 2016 at 9:25 AM Subject: hg: jigsaw/jake/jdk: Adding ElementType.MODULE as a target for @SuppressWarnings. To: jigsaw-dev@openjdk.java.net Changeset: f985e08a0422 Author: jlahoda Date: 2016-07-08 16:20 +0200 URL: http://hg.openjdk.java.net/jigsaw/jake/jdk/rev/f985e08a0422 Adding ElementType.MODULE as a target for @SuppressWarnings. Contributed-by: joe.da...@oracle.com ! src/java.base/share/classes/java/lang/SuppressWarnings.java