hotspot/test/runtime/modules/AccessCheckUnnamed.java
changeset 46404 ae62ba99a1a7
parent 44520 0553e129e0ec
equal deleted inserted replaced
46403:f2b91b928476 46404:ae62ba99a1a7
    53         ClassLoader this_cldr = AccessCheckUnnamed.class.getClassLoader();
    53         ClassLoader this_cldr = AccessCheckUnnamed.class.getClassLoader();
    54 
    54 
    55         // Define a module for p2.
    55         // Define a module for p2.
    56         m2x = ModuleHelper.ModuleObject("module_two", this_cldr, new String[] { "p2" });
    56         m2x = ModuleHelper.ModuleObject("module_two", this_cldr, new String[] { "p2" });
    57         assertNotNull(m2x, "Module should not be null");
    57         assertNotNull(m2x, "Module should not be null");
    58         ModuleHelper.DefineModule(m2x, "9.0", "m2x/there", new String[] { "p2" });
    58         ModuleHelper.DefineModule(m2x, false, "9.0", "m2x/there", new String[] { "p2" });
    59         ModuleHelper.AddReadsModule(m2x, jlObject_jlM);
    59         ModuleHelper.AddReadsModule(m2x, jlObject_jlM);
    60 
    60 
    61         // p1.c1's ctor tries to call a method in p2.c2.  This should fail because
    61         // p1.c1's ctor tries to call a method in p2.c2.  This should fail because
    62         // p1 is in the unnamed module and p2.c2 is not unqualifiedly exported.
    62         // p1 is in the unnamed module and p2.c2 is not unqualifiedly exported.
    63         Class p1_c1_class = Class.forName("p1.c1");
    63         Class p1_c1_class = Class.forName("p1.c1");