--- old/test/hotspot/jtreg/runtime/cds/appcds/customLoader/LoaderSegregationTest.java 2019-08-09 19:43:01.054589473 -0700 +++ new/test/hotspot/jtreg/runtime/cds/appcds/customLoader/LoaderSegregationTest.java 2019-08-09 19:43:00.502569442 -0700 @@ -39,6 +39,7 @@ * test-classes/OnlyBuiltin.java * test-classes/OnlyUnregistered.java * ../test-classes/Util.java + * ../test-classes/Hello.java * @build sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * @run driver LoaderSegregationTest @@ -74,7 +75,7 @@ String customJarPath = JarBuilder.build("LoaderSegregation_custom", "CustomLoadee", "CustomLoadee2", "CustomInterface2_ia", "CustomInterface2_ib", "CustomLoadee3", "CustomLoadee3Child", - "OnlyBuiltin", "OnlyUnregistered"); + "OnlyBuiltin", "OnlyUnregistered", "Hello"); // Dump the archive String classlist[] = new String[] { @@ -112,8 +113,6 @@ output = TestCommon.exec(TestCommon.concatPaths(appJar, app2Jar), // command-line arguments ... - "--add-opens=java.base/java.lang=ALL-UNNAMED", - "--add-opens=java.base/java.security=ALL-UNNAMED", use_whitebox_jar, "-XX:+UnlockDiagnosticVMOptions", "-XX:+WhiteBoxAPI",