8165896: Use "open" flag from JVM_DefineModule to export all module packages
Summary: 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
--- a/test/lib/sun/hotspot/WhiteBox.java Tue Apr 18 23:52:57 2017 +0200
+++ b/test/lib/sun/hotspot/WhiteBox.java Mon Apr 24 12:06:51 2017 -0400
@@ -482,8 +482,8 @@
}
// Jigsaw
- public native void DefineModule(Object module, String version, String location,
- Object[] packages);
+ public native void DefineModule(Object module, boolean is_open, String version,
+ String location, Object[] packages);
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 AddModulePackage(Object module, String pkg);