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

test/hotspot/jtreg/runtime/appcds/jigsaw/classpathtests/EmptyClassInBootClassPath.java

Print this page

        

*** 88,109 **** argsList.remove(argsList.size() - 1); argsList.add("useAppLoader"); opts = new String[argsList.size()]; opts = argsList.toArray(opts); TestCommon.run(opts) ! .assertSilentlyDisabledCDS(out -> { ! out.shouldHaveExitValue(0) ! .shouldContain(EXPECTED_EXCEPTION); ! }); // case 4: load class in bootclasspath using boot loader with '--limit-modules java.base' argsList.remove(argsList.size() - 1); argsList.add("useBootLoader"); opts = new String[argsList.size()]; opts = argsList.toArray(opts); TestCommon.run(opts) ! .assertSilentlyDisabledCDS(out -> { ! out.shouldHaveExitValue(0) ! .shouldContain(EXPECTED_EXCEPTION); ! }); } } --- 88,103 ---- argsList.remove(argsList.size() - 1); argsList.add("useAppLoader"); opts = new String[argsList.size()]; opts = argsList.toArray(opts); TestCommon.run(opts) ! .assertSilentlyDisabledCDS(0, EXPECTED_EXCEPTION); // case 4: load class in bootclasspath using boot loader with '--limit-modules java.base' argsList.remove(argsList.size() - 1); argsList.add("useBootLoader"); opts = new String[argsList.size()]; opts = argsList.toArray(opts); TestCommon.run(opts) ! .assertSilentlyDisabledCDS(0, EXPECTED_EXCEPTION); } }
test/hotspot/jtreg/runtime/appcds/jigsaw/classpathtests/EmptyClassInBootClassPath.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File