src/jdk.compiler/share/classes/com/sun/tools/javac/code/Symtab.java
changeset 59058 3f57daa2d6eb
parent 58713 ad69fd32778e
equal deleted inserted replaced
59057:c8e15590c7cc 59058:3f57daa2d6eb
   783                 }
   783                 }
   784             };
   784             };
   785         unnamedPackage.modle = module;
   785         unnamedPackage.modle = module;
   786         //we cannot use a method reference below, as initialCompleter might be null now
   786         //we cannot use a method reference below, as initialCompleter might be null now
   787         unnamedPackage.completer = s -> initialCompleter.complete(s);
   787         unnamedPackage.completer = s -> initialCompleter.complete(s);
       
   788         unnamedPackage.flags_field |= EXISTS;
   788         module.unnamedPackage = unnamedPackage;
   789         module.unnamedPackage = unnamedPackage;
   789     }
   790     }
   790 
   791 
   791     public PackageSymbol getPackage(ModuleSymbol module, Name fullname) {
   792     public PackageSymbol getPackage(ModuleSymbol module, Name fullname) {
   792         return packages.getOrDefault(fullname, Collections.emptyMap()).get(module);
   793         return packages.getOrDefault(fullname, Collections.emptyMap()).get(module);