< prev index next >

test/hotspot/jtreg/runtime/cds/appcds/AppendClasspath.java

Print this page


  78         "-cp", appJar2 + File.pathSeparator + appJar,
  79         "HelloMore")
  80         .assertAbnormalExit(errorMessage1, errorMessage2);
  81 
  82     // FAIL: 2) runtime with classpath part of the one used in dump time
  83     TestCommon.testDump(appJar + File.pathSeparator + appJar2,
  84                                       TestCommon.list("Hello"));
  85     TestCommon.run(
  86         "-Xlog:cds",
  87         "-cp", appJar2,
  88         "Hello")
  89         .assertAbnormalExit(errorMessage1, errorMessage2);
  90 
  91     // FAIL: 3) runtime with same set of jar files in the classpath but
  92     // with different order
  93     TestCommon.run(
  94         "-Xlog:cds",
  95         "-cp", appJar2 + File.pathSeparator + appJar,
  96         "HelloMore")
  97         .assertAbnormalExit(errorMessage1, errorMessage2);
  98 
  99     // FAIL: 4) non-existing jar during dump time but jar exists during runtime
 100     TestCommon.testDump(classPath, TestCommon.list("Hello"));
 101 
 102     Files.copy(Paths.get(classDir, "hello.jar"),
 103         Paths.get(classDir, newFile),
 104         StandardCopyOption.REPLACE_EXISTING);
 105 
 106     TestCommon.run(
 107         "-cp", classPath,
 108         "-Xlog:class+path=trace",
 109         "Hello")
 110         .assertAbnormalExit(errorMessage1, errorMessage2);
 111 
 112     }
 113 }


  78         "-cp", appJar2 + File.pathSeparator + appJar,
  79         "HelloMore")
  80         .assertAbnormalExit(errorMessage1, errorMessage2);
  81 
  82     // FAIL: 2) runtime with classpath part of the one used in dump time
  83     TestCommon.testDump(appJar + File.pathSeparator + appJar2,
  84                                       TestCommon.list("Hello"));
  85     TestCommon.run(
  86         "-Xlog:cds",
  87         "-cp", appJar2,
  88         "Hello")
  89         .assertAbnormalExit(errorMessage1, errorMessage2);
  90 
  91     // FAIL: 3) runtime with same set of jar files in the classpath but
  92     // with different order
  93     TestCommon.run(
  94         "-Xlog:cds",
  95         "-cp", appJar2 + File.pathSeparator + appJar,
  96         "HelloMore")
  97         .assertAbnormalExit(errorMessage1, errorMessage2);














  98     }
  99 }
< prev index next >