< prev index next >

test/hotspot/jtreg/serviceability/dcmd/vm/ClassLoaderHierarchyTest.java

Print this page
rev 58565 : 8238358: Implementation of JEP 371: Hidden Classes
Reviewed-by: duke
Contributed-by: mandy.chung@oracle.com, lois.foltan@oracle.com, david.holmes@oracle.com, harold.seigel@oracle.com, serguei.spitsyn@oracle.com, alex.buckley@oracle.com, jamsheed.c.m@oracle.com
rev 58568 : [mq]: hidden-class-4

*** 1,7 **** /* ! * Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2018, SAP SE. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as --- 1,7 ---- /* ! * Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2018, SAP SE. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as
*** 25,36 **** /* * @test * @summary Test of diagnostic command VM.classloaders * @library /test/lib * @modules java.base/jdk.internal.misc ! * java.compiler ! * java.management * jdk.internal.jvmstat/sun.jvmstat.monitor * @run testng ClassLoaderHierarchyTest */ import org.testng.Assert; --- 25,35 ---- /* * @test * @summary Test of diagnostic command VM.classloaders * @library /test/lib * @modules java.base/jdk.internal.misc ! * jdk.compiler * jdk.internal.jvmstat/sun.jvmstat.monitor * @run testng ClassLoaderHierarchyTest */ import org.testng.Assert;
*** 95,104 **** --- 94,104 ---- output.shouldContain("java.lang.Object"); output.shouldMatch(".*TestClassLoader"); output.shouldMatch("Kevin.*TestClassLoader"); output.shouldMatch("Bill.*TestClassLoader"); output.shouldContain("TestClass2"); + output.shouldContain("Hidden Classes:"); } static class TestClassLoader extends ClassLoader { public TestClassLoader() {
< prev index next >