hotspot/test/runtime/modules/AccessCheckSuper.java
changeset 46404 ae62ba99a1a7
parent 44520 0553e129e0ec
equal deleted inserted replaced
46403:f2b91b928476 46404:ae62ba99a1a7
    47         ClassLoader this_cldr = AccessCheckSuper.class.getClassLoader();
    47         ClassLoader this_cldr = AccessCheckSuper.class.getClassLoader();
    48 
    48 
    49         // Define a module for p2.
    49         // Define a module for p2.
    50         Object m2x = ModuleHelper.ModuleObject("module_two", this_cldr, new String[] { "p2" });
    50         Object m2x = ModuleHelper.ModuleObject("module_two", this_cldr, new String[] { "p2" });
    51         assertNotNull(m2x, "Module should not be null");
    51         assertNotNull(m2x, "Module should not be null");
    52         ModuleHelper.DefineModule(m2x, "9.0", "m2x/there", new String[] { "p2" });
    52         ModuleHelper.DefineModule(m2x, false, "9.0", "m2x/there", new String[] { "p2" });
    53 
    53 
    54         // Define a module for p3.
    54         // Define a module for p3.
    55         Object m3x = ModuleHelper.ModuleObject("module_three", this_cldr, new String[] { "p3" });
    55         Object m3x = ModuleHelper.ModuleObject("module_three", this_cldr, new String[] { "p3" });
    56         assertNotNull(m3x, "Module should not be null");
    56         assertNotNull(m3x, "Module should not be null");
    57         ModuleHelper.DefineModule(m3x, "9.0", "m3x/there", new String[] { "p3" });
    57         ModuleHelper.DefineModule(m3x, false, "9.0", "m3x/there", new String[] { "p3" });
    58 
    58 
    59         // Since a readability edge has not been established between module_two
    59         // Since a readability edge has not been established between module_two
    60         // and module_three, p3.c3 cannot read its superclass p2.c2.
    60         // and module_three, p3.c3 cannot read its superclass p2.c2.
    61         try {
    61         try {
    62             Class p3_c3_class = Class.forName("p3.c3");
    62             Class p3_c3_class = Class.forName("p3.c3");