test/hotspot/jtreg/runtime/appcds/javaldr/ArrayTest.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File
*** old/test/hotspot/jtreg/runtime/appcds/javaldr/ArrayTest.java	Thu Dec  7 14:55:17 2017
--- new/test/hotspot/jtreg/runtime/appcds/javaldr/ArrayTest.java	Thu Dec  7 14:55:16 2017

*** 54,78 **** --- 54,82 ---- JarBuilder.build(true, "WhiteBox", "sun/hotspot/WhiteBox"); String whiteBoxJar = TestCommon.getTestJar("WhiteBox.jar"); String bootClassPath = "-Xbootclasspath/a:" + whiteBoxJar; // create an archive containing array classes ! OutputAnalyzer output = TestCommon.dump(appJar, TestCommon.list(arrayClasses), bootClassPath, "-verbose:class"); + // we currently don't support array classes during CDS dump + output.shouldContain("Preload Warning: Cannot find [Ljava/lang/Comparable;") + .shouldContain("Preload Warning: Cannot find [I"); List<String> argsList = new ArrayList<String>(); argsList.add("-XX:+UnlockDiagnosticVMOptions"); argsList.add("-XX:+WhiteBoxAPI"); argsList.add("-cp"); argsList.add(appJar); argsList.add(bootClassPath); argsList.add("-verbose:class"); argsList.add("ArrayTestHelper"); // the following are input args to the ArrayTestHelper. for (int i = 0; i < arrayClasses.length; i++) { + // skip checking array classes during run time + for (int i = 0; i < 1; i++) { argsList.add(arrayClasses[i]); } String[] opts = new String[argsList.size()]; opts = argsList.toArray(opts); - OutputAnalyzer output = TestCommon.execCommon(opts); TestCommon.checkExec(output); } }

test/hotspot/jtreg/runtime/appcds/javaldr/ArrayTest.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File