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

test/hotspot/jtreg/runtime/appcds/jigsaw/modulepath/ExportModule.java

Print this page

        

*** 116,126 **** // previous step and the main class from the modular jar in the -cp // note: the main class is in the modular jar in the -cp which requires // the module in the --module-path OutputAnalyzer output = TestCommon.createArchive( appJar.toString(), appClasses, ! "-Xlog:class+load=trace", "-XX:+PrintSystemDictionaryAtExit", "--module-path", moduleDir.toString(), "--add-modules", TEST_MODULE2, MAIN_CLASS); TestCommon.checkDump(output); // run it using the archive --- 116,126 ---- // previous step and the main class from the modular jar in the -cp // note: the main class is in the modular jar in the -cp which requires // the module in the --module-path OutputAnalyzer output = TestCommon.createArchive( appJar.toString(), appClasses, ! "-Xlog:class+load=trace", "--module-path", moduleDir.toString(), "--add-modules", TEST_MODULE2, MAIN_CLASS); TestCommon.checkDump(output); // run it using the archive
*** 140,150 **** // note: the org.astro package needs to be exported to "ALL-UNNAMED" // module since the jar in the -cp is a non-modular jar and thus it is // unnmaed. output = TestCommon.createArchive( appJar2.toString(), appClasses2, ! "-Xlog:class+load=trace", "-XX:+PrintSystemDictionaryAtExit", "--module-path", moduleDir.toString(), "--add-modules", TEST_MODULE2, "--add-exports", "org.astro/org.astro=ALL-UNNAMED", UNNAMED_MAIN); TestCommon.checkDump(output); --- 140,150 ---- // note: the org.astro package needs to be exported to "ALL-UNNAMED" // module since the jar in the -cp is a non-modular jar and thus it is // unnmaed. output = TestCommon.createArchive( appJar2.toString(), appClasses2, ! "-Xlog:class+load=trace", "--module-path", moduleDir.toString(), "--add-modules", TEST_MODULE2, "--add-exports", "org.astro/org.astro=ALL-UNNAMED", UNNAMED_MAIN); TestCommon.checkDump(output);
test/hotspot/jtreg/runtime/appcds/jigsaw/modulepath/ExportModule.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File