src/jdk.compiler/share/classes/com/sun/tools/javac/code/Symtab.java
changeset 59058 3f57daa2d6eb
parent 58713 ad69fd32778e
--- a/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Symtab.java	Wed Nov 13 21:56:28 2019 +0800
+++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Symtab.java	Wed Nov 13 10:33:00 2019 -0800
@@ -785,6 +785,7 @@
         unnamedPackage.modle = module;
         //we cannot use a method reference below, as initialCompleter might be null now
         unnamedPackage.completer = s -> initialCompleter.complete(s);
+        unnamedPackage.flags_field |= EXISTS;
         module.unnamedPackage = unnamedPackage;
     }