8165896: Use "open" flag from JVM_DefineModule to export all module packages

Implemented VM side of open modules, which export all their packages unqualifiedly. Automatic modules and unnamed modules are treated internally as open modules.

Reviewed-by: alanb, hseigel, lfoltan
This commit is contained in:
Rachel Protacio 2017-04-24 12:08:28 -04:00
parent f9e13c6d3f
commit 9947f147f6
28 changed files with 205 additions and 93 deletions

View file

@ -46,7 +46,7 @@ public class AccessCheckJavaBase {
// Define a module for p2.
Object 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" });
// p2.c2 can read its superclass java.lang.Object defined within java.base
try {