test/hotspot/jtreg/runtime/appcds/jigsaw/modulepath/AddOpens.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File
*** old/test/hotspot/jtreg/runtime/appcds/jigsaw/modulepath/AddOpens.java	Fri Apr  6 15:40:42 2018
--- new/test/hotspot/jtreg/runtime/appcds/jigsaw/modulepath/AddOpens.java	Fri Apr  6 15:40:42 2018

*** 88,110 **** --- 88,110 ---- OutputAnalyzer output = TestCommon.createArchive( destJar.toString(), appClasses, "-Xlog:class+load=trace", "-XX:+PrintSystemDictionaryAtExit", "--module-path", moduleDir.toString(), "-m", TEST_MODULE1); ! TestCommon.checkExecReturn(output, 0, true, "Loading classes to share"); ! TestCommon.checkDump(output); // run with the archive using the same command line as in dump time // plus the "--add-opens java.base/java.lang=com.simple" option. // The main class should be loaded from the archive. // The setaccessible(true) on the ClassLoader.defineClass method should // be successful. ! output = TestCommon.execCommon( "-Xlog:class+load=trace", ! TestCommon.run( "-Xlog:class+load=trace", "-cp", destJar.toString(), "--add-opens", "java.base/java.lang=" + TEST_MODULE1, "--module-path", moduleDir.toString(), ! "-m", TEST_MODULE1, "with_add_opens"); TestCommon.checkExecReturn(output, 0, true, + .assertNormalExit( "[class,load] com.simple.Main source: shared objects file", "method.setAccessible succeeded!"); } }

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