< prev index next >

test/hotspot/jtreg/runtime/cds/customLoader/SameNameInTwoLoadersTest.java

Print this page




  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 /*
  26  * @test
  27  * @summary Testing the loading of a class with the same name in two different class loaders.
  28  *
  29  * @requires vm.cds
  30  * @requires vm.cds.custom.loaders
  31  *
  32  * @library /test/lib /test/hotspot/jtreg/runtime/appcds
  33  * @modules java.base/jdk.internal.misc
  34  *          java.management
  35  *          jdk.jartool/sun.tools.jar
  36  * @compile test-classes/CustomLoadee.java
  37  *     test-classes/CustomLoadee3.java
  38  *     test-classes/SameNameUnrelatedLoaders.java
  39  * @build sun.hotspot.WhiteBox
  40  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
  41  * @run driver SameNameInTwoLoadersTest
  42  */
  43 
  44 import jdk.test.lib.process.OutputAnalyzer;
  45 import sun.hotspot.WhiteBox;
  46 
  47 
  48 public class SameNameInTwoLoadersTest {
  49     private static String appJar;
  50     private static String customJar;
  51     private static String useWbParam;
  52 




  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 /*
  26  * @test
  27  * @summary Testing the loading of a class with the same name in two different class loaders.
  28  *
  29  * @requires vm.cds
  30  * @requires vm.cds.custom.loaders
  31  *
  32  * @library /test/lib /test/hotspot/jtreg/runtime/cds
  33  * @modules java.base/jdk.internal.misc
  34  *          java.management
  35  *          jdk.jartool/sun.tools.jar
  36  * @compile test-classes/CustomLoadee.java
  37  *     test-classes/CustomLoadee3.java
  38  *     test-classes/SameNameUnrelatedLoaders.java
  39  * @build sun.hotspot.WhiteBox
  40  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
  41  * @run driver SameNameInTwoLoadersTest
  42  */
  43 
  44 import jdk.test.lib.process.OutputAnalyzer;
  45 import sun.hotspot.WhiteBox;
  46 
  47 
  48 public class SameNameInTwoLoadersTest {
  49     private static String appJar;
  50     private static String customJar;
  51     private static String useWbParam;
  52 


< prev index next >