8165896: Use "open" flag from JVM_DefineModule to export all module packages
authorrprotacio
Mon, 24 Apr 2017 12:06:51 -0400
changeset 46209 2ca4b9abe9b6
parent 46208 b4529da3f188
child 46210 244486b722ee
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
test/lib/sun/hotspot/WhiteBox.java
--- 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);