--- a/hotspot/test/runtime/modules/AccessCheck/DiffCL_Umod.java Wed Jul 05 21:39:33 2017 +0200
+++ b/hotspot/test/runtime/modules/AccessCheck/DiffCL_Umod.java Tue May 03 09:09:20 2016 +0100
@@ -209,9 +209,9 @@
// now use the same loader to load class p1.c1Loose
Class p1_c1_class = MyDiffClassLoader.loader1.loadClass("p1.c1Loose");
- // change m1 to be a loose module
+ // change m1 to read all unnamed modules
Module m1 = layer.findModule("m1").get();
- jdk.internal.module.Modules.addReads(m1, null);
+ jdk.internal.module.Modules.addReadsAllUnnamed(m1);
try {
p1_c1_class.newInstance();