--- a/test/hotspot/jtreg/runtime/appcds/HelloExtTest.java Thu Apr 26 10:29:44 2018 +0800
+++ b/test/hotspot/jtreg/runtime/appcds/HelloExtTest.java Wed Apr 25 14:08:19 2018 -0700
@@ -51,8 +51,8 @@
String bootClassPath = "-Xbootclasspath/a:" + whiteBoxJar;
TestCommon.dump(appJar,
- TestCommon.list("org/omg/CORBA/ORB", "[Ljava/lang/Comparable;"),
- bootClassPath, "-verbose:class", "--add-modules", "java.corba");
+ TestCommon.list("javax/annotation/processing/FilerException", "[Ljava/lang/Comparable;"),
+ bootClassPath, "-verbose:class");
String prefix = ".class.load. ";
String class_pattern = ".*LambdaForm[$]MH[/][0123456789].*";
@@ -60,14 +60,14 @@
String pattern = prefix + class_pattern + suffix;
TestCommon.run("-XX:+UnlockDiagnosticVMOptions", "-XX:+WhiteBoxAPI",
- "-cp", appJar, bootClassPath, "-verbose:class", "--add-modules", "java.corba", "HelloExt")
+ "-cp", appJar, bootClassPath, "-verbose:class", "HelloExt")
.assertNormalExit(output -> output.shouldNotMatch(pattern));
TestCommon.run("-XX:+UnlockDiagnosticVMOptions", "-XX:+WhiteBoxAPI",
"-cp", appJar, bootClassPath, "-verbose:class",
"-XX:+PrintSharedArchiveAndExit", "-XX:+PrintSharedDictionary",
- "--add-modules", "java.corba", "HelloExt")
+ "HelloExt")
.assertNormalExit(output -> output.shouldNotMatch(class_pattern));
}
}