mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 10:34:38 +02:00
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:
parent
f9e13c6d3f
commit
9947f147f6
28 changed files with 205 additions and 93 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue