changeset 2961:b9ceb92798bf

fix test breakage in jdk/jigsaw
author jjg
date Wed, 01 Apr 2015 14:56:08 -0700
parents 16938aca9549
children aa22f1ec8ded
files src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Modules.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Modules.java	Wed Apr 01 13:39:03 2015 -0700
+++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Modules.java	Wed Apr 01 14:56:08 2015 -0700
@@ -563,11 +563,13 @@
             if (equals == -1) {
                 String packageName = s.substring(slash + 1);
                 PackageSymbol p = syms.enterPackage(msym, names.fromString(packageName));
+                p.modle = msym;
                 d = new ExportsDirective(p, null);
             } else {
                 String packageName = s.substring(slash + 1, equals);
                 String toModule = s.substring(equals + 1);
                 PackageSymbol p = syms.enterPackage(msym, names.fromString(packageName));
+                p.modle = msym;
                 ModuleSymbol m = syms.enterModule(names.fromString(toModule));
                 d = new ExportsDirective(p, List.of(m));
             }