test/hotspot/jtreg/runtime/cds/appcds/javaldr/ArrayTest.java
changeset 59129 d8eddc0ba770
parent 57567 b000362a89a0
equal deleted inserted replaced
59128:ac11b83e0f38 59129:d8eddc0ba770
    26  * @test
    26  * @test
    27  * @summary test the ability to archive array classes and load them from the archive
    27  * @summary test the ability to archive array classes and load them from the archive
    28  * @requires vm.cds
    28  * @requires vm.cds
    29  * @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
    29  * @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
    30  * @modules jdk.jartool/sun.tools.jar
    30  * @modules jdk.jartool/sun.tools.jar
    31  * @compile ArrayTestHelper.java
       
    32  * @build sun.hotspot.WhiteBox
    31  * @build sun.hotspot.WhiteBox
    33  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
    32  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
    34  * @run driver ArrayTest
    33  * @run driver ArrayTest
    35  */
    34  */
    36 
    35 
    39 import jdk.test.lib.process.OutputAnalyzer;
    38 import jdk.test.lib.process.OutputAnalyzer;
    40 
    39 
    41 public class ArrayTest {
    40 public class ArrayTest {
    42 
    41 
    43     static String arrayClasses[] = {
    42     static String arrayClasses[] = {
    44         "ArrayTestHelper",
    43         ArrayTestHelper.class.getName(),
    45         "[Ljava/lang/Comparable;",
    44         "[Ljava/lang/Comparable;",
    46         "[I",
    45         "[I",
    47         "[[[Ljava/lang/Object;",
    46         "[[[Ljava/lang/Object;",
    48         "[[B"
    47         "[[B"
    49     };
    48     };
    68         argsList.add("-XX:+UnlockDiagnosticVMOptions");
    67         argsList.add("-XX:+UnlockDiagnosticVMOptions");
    69         argsList.add("-XX:+WhiteBoxAPI");
    68         argsList.add("-XX:+WhiteBoxAPI");
    70         argsList.add("-cp");
    69         argsList.add("-cp");
    71         argsList.add(appJar);
    70         argsList.add(appJar);
    72         argsList.add(bootClassPath);
    71         argsList.add(bootClassPath);
    73         argsList.add("ArrayTestHelper");
    72         argsList.add(ArrayTestHelper.class.getName());
    74         // the following are input args to the ArrayTestHelper.
    73         // the following are input args to the ArrayTestHelper.
    75         // skip checking array classes during run time
    74         // skip checking array classes during run time
    76         for (int i = 0; i < 1; i++) {
    75         for (int i = 0; i < 1; i++) {
    77             argsList.add(arrayClasses[i]);
    76             argsList.add(arrayClasses[i]);
    78         }
    77         }