test/hotspot/jtreg/runtime/appcds/jigsaw/classpathtests/DummyClassesInBootClassPath.java
changeset 53261 b7dca420fa0c
parent 51990 6003e034cdd8
equal deleted inserted replaced
53260:fbc921683f02 53261:b7dca420fa0c
     1 /*
     1 /*
     2  * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    61         JarBuilder.build("dummyClasses", classNames[0], classNames[1]);
    61         JarBuilder.build("dummyClasses", classNames[0], classNames[1]);
    62 
    62 
    63         String appJar = TestCommon.getTestJar("dummyClasses.jar");
    63         String appJar = TestCommon.getTestJar("dummyClasses.jar");
    64         OutputAnalyzer dumpOutput = TestCommon.dump(
    64         OutputAnalyzer dumpOutput = TestCommon.dump(
    65             appJar, classNames, "-Xbootclasspath/a:" + appJar);
    65             appJar, classNames, "-Xbootclasspath/a:" + appJar);
       
    66         TestCommon.checkDump(dumpOutput);
       
    67 
    66         List<String> argsList = new ArrayList<String>();
    68         List<String> argsList = new ArrayList<String>();
    67         for (int i = 0; i < classNames.length; i++) {
    69         for (int i = 0; i < classNames.length; i++) {
    68             argsList.add(classNames[i].replace('/', '.'));
    70             argsList.add(classNames[i].replace('/', '.'));
    69         }
    71         }
    70         String[] arguments = new String[argsList.size()];
    72         String[] arguments = new String[argsList.size()];