8165896: Use "open" flag from JVM_DefineModule to export all module packages

Implemented VM side of open modules, which export all their packages unqualifiedly. Automatic modules and unnamed modules are treated internally as open modules.

Reviewed-by: alanb, hseigel, lfoltan
This commit is contained in:
Rachel Protacio 2017-04-24 12:06:51 -04:00
parent 654c500294
commit 3843553139

View File

@ -482,8 +482,8 @@ public class WhiteBox {
} }
// Jigsaw // Jigsaw
public native void DefineModule(Object module, String version, String location, public native void DefineModule(Object module, boolean is_open, String version,
Object[] packages); String location, Object[] packages);
public native void AddModuleExports(Object from_module, String pkg, Object to_module); public native void AddModuleExports(Object from_module, String pkg, Object to_module);
public native void AddReadsModule(Object from_module, Object source_module); public native void AddReadsModule(Object from_module, Object source_module);
public native void AddModulePackage(Object module, String pkg); public native void AddModulePackage(Object module, String pkg);