hotspot/test/runtime/modules/ModuleHelper.java
changeset 46404 ae62ba99a1a7
parent 46388 d7a164ad6b7f
child 46632 cef226af6c02
equal deleted inserted replaced
46403:f2b91b928476 46404:ae62ba99a1a7
    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);