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

        

*** 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,87 ---- 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(out -> { ! out.shouldHaveExitValue(0) ! .shouldContain("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