test/hotspot/jtreg/runtime/appcds/jigsaw/modulepath/MainModuleOnly.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File
*** old/test/hotspot/jtreg/runtime/appcds/jigsaw/modulepath/MainModuleOnly.java	Wed Aug 22 09:26:44 2018
--- new/test/hotspot/jtreg/runtime/appcds/jigsaw/modulepath/MainModuleOnly.java	Wed Aug 22 09:26:43 2018

*** 88,98 **** --- 88,97 ---- // create an archive with both -cp and --module-path in the command line. // Only the class in the modular jar in the --module-path will be archived; // the class in the modular jar in the -cp won't be archived. OutputAnalyzer output = TestCommon.createArchive( destJar.toString(), appClasses, "-Xlog:class+load=trace", "--module-path", moduleDir.toString(), "-m", TEST_MODULE1); TestCommon.checkDump(output); // run with the archive using the same command line as in dump time.
*** 167,178 **** --- 166,176 ---- // modify the timestamp of the jar file (new File(destJar.toString())).setLastModified(System.currentTimeMillis() + 2000); // run with the archive and the jar with modified timestamp. // It should fail due to timestamp of the jar doesn't match the one // used during dump time. ! TestCommon.run("-Xlog:class+load=trace", "-cp", destJar.toString(), ! TestCommon.run("-cp", destJar.toString(), "--module-path", moduleDir.toString(), "-m", TEST_MODULE1) .assertAbnormalExit( "A jar file is not the one used while building the shared archive file:"); // create an archive with a non-empty directory in the --module-path.

test/hotspot/jtreg/runtime/appcds/jigsaw/modulepath/MainModuleOnly.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File