< prev index next >
test/runtime/modules/JVMAddModuleExportsToAll.java
Print this page
@@ -55,17 +55,17 @@
ClassLoader this_cldr = JVMAddModuleExportsToAll.class.getClassLoader();
// Define a module for p3.
m1x = ModuleHelper.ModuleObject("module_one", this_cldr, new String[] { "p3" });
assertNotNull(m1x, "Module should not be null");
- ModuleHelper.DefineModule(m1x, "9.0", "m1x/there", new String[] { "p3" });
+ ModuleHelper.DefineModule(m1x, false, "9.0", "m1x/there", new String[] { "p3" });
ModuleHelper.AddReadsModule(m1x, jlObject_jlrM);
// Define a module for p2.
m2x = ModuleHelper.ModuleObject("module_two", this_cldr, new String[] { "p2" });
assertNotNull(m2x, "Module should not be null");
- ModuleHelper.DefineModule(m2x, "9.0", "m2x/there", new String[] { "p2" });
+ ModuleHelper.DefineModule(m2x, false, "9.0", "m2x/there", new String[] { "p2" });
ModuleHelper.AddReadsModule(m2x, jlObject_jlrM);
try {
ModuleHelper.AddModuleExportsToAll((Module)null, "p2");
throw new RuntimeException("Failed to get the expected NPE for null module");
@@ -103,11 +103,11 @@
// Export package p2 in m2x unqualifiedly. Then, do a qualified export
// of p2 in m2x to m3x. This should not affect the unqualified export.
m3x = ModuleHelper.ModuleObject("module_three", this_cldr, new String[] { "p4" });
assertNotNull(m3x, "Module m3x should not be null");
- ModuleHelper.DefineModule(m3x, "9.0", "m3x/there", new String[] { "p4" });
+ ModuleHelper.DefineModule(m3x, false, "9.0", "m3x/there", new String[] { "p4" });
ModuleHelper.AddModuleExportsToAll(m2x, "p2");
ModuleHelper.AddModuleExports(m2x, "p2", m3x);
// p1.c1's ctor tries to call a method in p2.c2. This should succeed because
// p1 is in an unnamed module and p2.c2 is exported unqualifiedly.
< prev index next >