src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Modules.java
changeset 50285 5b6bdc59f8cc
parent 48427 b08405cc467a
child 50738 6cc2dc161c64
--- a/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Modules.java	Mon May 28 12:11:50 2018 +0200
+++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Modules.java	Tue May 29 10:53:55 2018 +0200
@@ -673,7 +673,6 @@
             msym.requires = List.nil();
             msym.uses = List.nil();
             msym.directives = directives.toList();
-            msym.flags_field |= Flags.ACYCLIC;
         } catch (IOException ex) {
             throw new IllegalStateException(ex);
         }
@@ -1739,7 +1738,7 @@
                 if (!nonSyntheticDeps.add(current))
                     continue;
                 current.complete();
-                if ((current.flags() & Flags.ACYCLIC) != 0)
+                if ((current.flags() & Flags.AUTOMATIC_MODULE) != 0)
                     continue;
                 Assert.checkNonNull(current.requires, current::toString);
                 for (RequiresDirective dep : current.requires) {
@@ -1750,7 +1749,6 @@
             if (nonSyntheticDeps.contains(mod.sym)) {
                 log.error(rd.moduleName.pos(), Errors.CyclicRequires(rd.directive.module));
             }
-            mod.sym.flags_field |= Flags.ACYCLIC;
         }
     }