test/hotspot/jtreg/runtime/appcds/jigsaw/PatchModule/SubClassOfPatchedClass.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
open Cdiff test/hotspot/jtreg/runtime/appcds/jigsaw/PatchModule/SubClassOfPatchedClass.java
test/hotspot/jtreg/runtime/appcds/jigsaw/PatchModule/SubClassOfPatchedClass.java
Print this page
*** 91,107 ****
output.shouldHaveExitValue(1)
.shouldContain("Cannot use the following option when dumping the shared archive: --patch-module");
String classPath = appJar + File.pathSeparator + classDir;
System.out.println("classPath: " + classPath);
! output = TestCommon.execCommon(
"-XX:+UnlockDiagnosticVMOptions",
"-cp", classPath,
"--patch-module=java.naming=" + moduleJar,
"-Xlog:class+load",
! "PatchMain", "javax.naming.Reference", "mypackage.MyReference");
! output.shouldHaveExitValue(0)
! .shouldContain("CDS is disabled")
.shouldContain("MyReference source: file:")
.shouldContain("I pass!");
}
}
--- 91,108 ----
output.shouldHaveExitValue(1)
.shouldContain("Cannot use the following option when dumping the shared archive: --patch-module");
String classPath = appJar + File.pathSeparator + classDir;
System.out.println("classPath: " + classPath);
! TestCommon.run(
"-XX:+UnlockDiagnosticVMOptions",
"-cp", classPath,
"--patch-module=java.naming=" + moduleJar,
"-Xlog:class+load",
! "PatchMain", "javax.naming.Reference", "mypackage.MyReference")
! .assertSilentlyDisabledCDS(out -> {
! out.shouldHaveExitValue(0)
.shouldContain("MyReference source: file:")
.shouldContain("I pass!");
+ });
}
}
test/hotspot/jtreg/runtime/appcds/jigsaw/PatchModule/SubClassOfPatchedClass.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File