test/hotspot/jtreg/runtime/appcds/sharedStrings/IncompatibleOptions.java
changeset 51491 187c84a5efe1
parent 51370 fbb62267e5e9
child 51527 dda0f219dafa
equal deleted inserted replaced
51490:25048be67f4a 51491:187c84a5efe1
   139 
   139 
   140         // needed, otherwise system considers empty extra option as a
   140         // needed, otherwise system considers empty extra option as a
   141         // main class param, and fails with "Could not find or load main class"
   141         // main class param, and fails with "Could not find or load main class"
   142         if (!extraOption.isEmpty()) {
   142         if (!extraOption.isEmpty()) {
   143             output = TestCommon.exec(appJar, "-XX:+UseCompressedOops",
   143             output = TestCommon.exec(appJar, "-XX:+UseCompressedOops",
   144                 collectorOption, extraOption, "HelloString");
   144                 collectorOption, "-Xlog:cds", extraOption, "HelloString");
   145         } else {
   145         } else {
   146             output = TestCommon.exec(appJar, "-XX:+UseCompressedOops",
   146             output = TestCommon.exec(appJar, "-XX:+UseCompressedOops",
   147                 collectorOption, "HelloString");
   147                 collectorOption, "-Xlog:cds", "HelloString");
   148         }
   148         }
   149 
   149 
   150         if (expectedWarning != null)
   150         if (expectedWarning != null)
   151             output.shouldMatch(expectedWarning);
   151             output.shouldMatch(expectedWarning);
   152 
   152