< prev index next >
test/hotspot/jtreg/runtime/modules/JVMAddModuleExports.java
Print this page
rev 58870 : 8242452: During module definition, move conversion of packages from native to VM
8242290: Pointless verification in get_package_entry_by_name
Reviewed-by: lfoltan, alanb, iklam
@@ -125,17 +125,12 @@
// Export the same package twice to the same module
ModuleHelper.AddModuleExports(from_module, "x/apackage", to_module);
ModuleHelper.AddModuleExports(from_module, "x/apackage", to_module);
- // Export a package, using '.' instead of '/'
- try {
+ // Export the same package, using '.' instead of '/'
ModuleHelper.AddModuleExports(from_module, "x.apackage", to_module);
- throw new RuntimeException("Failed to get the expected IAE");
- } catch(IllegalArgumentException e) {
- // Expected
- }
// Export a package to the unnamed module and then to a specific module.
// The qualified export should be ignored.
ModuleHelper.AddModuleExportsToAll(to_module, "that/apackage");
ModuleHelper.AddModuleExports(to_module, "that/apackage", from_module);
< prev index next >