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

test/hotspot/jtreg/runtime/appcds/jigsaw/PatchModule/CustomPackage.java

Print this page
rev 49650 : [mq]: module_path

*** 68,83 **** TestCommon.list("javax/naming/myspi/NamingManager"), "--patch-module=java.naming=" + moduleJar, "-Xlog:class+load", "-Xlog:class+path=info", "PatchMain", "javax.naming.myspi.NamingManager"); ! TestCommon.checkDump(output, "Preload Warning: Cannot find javax/naming/myspi/NamingManager"); TestCommon.run( "-XX:+UnlockDiagnosticVMOptions", "--patch-module=java.naming=" + moduleJar, "-Xlog:class+load", "-Xlog:class+path=info", "PatchMain", "javax.naming.myspi.NamingManager") ! .assertNormalExit("I pass!"); } } --- 68,84 ---- TestCommon.list("javax/naming/myspi/NamingManager"), "--patch-module=java.naming=" + moduleJar, "-Xlog:class+load", "-Xlog:class+path=info", "PatchMain", "javax.naming.myspi.NamingManager"); ! output.shouldHaveExitValue(1) ! .shouldContain("Cannot use the following option when dumping the shared archive: --patch-module"); TestCommon.run( "-XX:+UnlockDiagnosticVMOptions", "--patch-module=java.naming=" + moduleJar, "-Xlog:class+load", "-Xlog:class+path=info", "PatchMain", "javax.naming.myspi.NamingManager") ! .assertSilentlyDisabledCDS(0, "I pass!"); } }
test/hotspot/jtreg/runtime/appcds/jigsaw/PatchModule/CustomPackage.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File