< prev index next >

test/hotspot/jtreg/runtime/appcds/sharedStrings/IncompatibleOptions.java

Print this page

        

@@ -137,14 +137,14 @@
 
         // needed, otherwise system considers empty extra option as a
         // main class param, and fails with "Could not find or load main class"
         if (!extraOption.isEmpty()) {
             output = TestCommon.exec(appJar, "-XX:+UseCompressedOops",
-                collectorOption, extraOption, "HelloString");
+                collectorOption, "-Xlog:cds", extraOption, "HelloString");
         } else {
             output = TestCommon.exec(appJar, "-XX:+UseCompressedOops",
-                collectorOption, "HelloString");
+                collectorOption, "-Xlog:cds", "HelloString");
         }
 
         if (expectedWarning != null)
             output.shouldMatch(expectedWarning);
 
< prev index next >