29 |
29 |
30 import sun.hotspot.WhiteBox; |
30 import sun.hotspot.WhiteBox; |
31 |
31 |
32 public class ModuleHelper { |
32 public class ModuleHelper { |
33 |
33 |
34 public static void DefineModule(Object module, String version, String location, |
34 public static void DefineModule(Object module, boolean is_open, String version, |
35 String[] pkgs) throws Throwable { |
35 String location, String[] pkgs) throws Throwable { |
36 WhiteBox wb = WhiteBox.getWhiteBox(); |
36 WhiteBox wb = WhiteBox.getWhiteBox(); |
37 wb.DefineModule(module, version, location, pkgs); |
37 wb.DefineModule(module, is_open, version, location, pkgs); |
38 } |
38 } |
39 |
39 |
40 public static void AddModuleExports(Object from, String pkg, Object to) throws Throwable { |
40 public static void AddModuleExports(Object from, String pkg, Object to) throws Throwable { |
41 WhiteBox wb = WhiteBox.getWhiteBox(); |
41 WhiteBox wb = WhiteBox.getWhiteBox(); |
42 wb.AddModuleExports(from, pkg, to); |
42 wb.AddModuleExports(from, pkg, to); |