changeset 46209:2ca4b9abe9b6

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
author rprotacio
date Mon, 24 Apr 2017 12:06:51 -0400
parents b4529da3f188
children 244486b722ee
files test/lib/sun/hotspot/WhiteBox.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);