test/hotspot/jtreg/runtime/appcds/jigsaw/PatchModule/SubClassOfPatchedClass.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
*** old/test/hotspot/jtreg/runtime/appcds/jigsaw/PatchModule/SubClassOfPatchedClass.java Fri Apr 6 15:40:38 2018
--- new/test/hotspot/jtreg/runtime/appcds/jigsaw/PatchModule/SubClassOfPatchedClass.java Fri Apr 6 15:40:37 2018
*** 91,107 ****
--- 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);
! output = TestCommon.execCommon(
! TestCommon.run(
"-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")
+ .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