--- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java Wed Nov 23 16:16:36 2016 +0000
+++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java Thu Dec 01 09:02:42 2016 +0000
@@ -4432,6 +4432,17 @@
public void visitModuleDef(JCModuleDecl tree) {
tree.sym.completeUsesProvides();
+ ModuleSymbol msym = tree.sym;
+ Lint lint = env.outer.info.lint = env.outer.info.lint.augment(msym);
+ Lint prevLint = chk.setLint(lint);
+
+ chk.checkDeprecatedAnnotation(tree, msym);
+
+ try {
+ deferredLintHandler.flush(tree.pos());
+ } finally {
+ chk.setLint(prevLint);
+ }
}
/** Finish the attribution of a class. */