changeset 4456:b8086bb7db9a

Fix spurious error caused by @deprecated tag on module comment
author jjg
date Thu, 17 Nov 2016 14:34:15 -0800
parents 6096c96e249a
children 72acc7c5dd6f
files src/jdk.compiler/share/classes/com/sun/tools/javac/parser/JavacParser.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.compiler/share/classes/com/sun/tools/javac/parser/JavacParser.java	Mon Nov 14 17:03:15 2016 +0100
+++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/parser/JavacParser.java	Thu Nov 17 14:34:15 2016 -0800
@@ -3159,7 +3159,7 @@
                     if (token.kind == IDENTIFIER && token.name() == names.module) {
                         List<JCAnnotation> annotations = List.nil();
                         if (mods != null) {
-                            checkNoMods(mods.flags);
+                            checkNoMods(mods.flags & ~Flags.DEPRECATED);
                             annotations = mods.annotations;
                             mods = null;
                         }