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 * @test
26 * @requires vm.cds
27 * @summary Test class loader constraint checks for archived classes (dynamic archive)
28 * @library /test/lib
29 * /test/hotspot/jtreg/runtime/cds/appcds
30 * /test/hotspot/jtreg/runtime/cds/appcds/test-classes
31 * /test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive
32 * @modules java.base/jdk.internal.misc
33 * jdk.httpserver
34 * @build sun.hotspot.WhiteBox
35 * @run driver ClassFileInstaller sun.hotspot.WhiteBox sun.hotspot.WhiteBox$WhiteBoxPermission
36 * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. DynamicLoaderConstraintsTest
37 */
38
39 import com.sun.net.httpserver.HttpExchange;
40 import com.sun.net.httpserver.HttpHandler;
41 import jdk.test.lib.Asserts;
42
43 public class DynamicLoaderConstraintsTest extends DynamicArchiveTestBase {
44 static String mainClass = LoaderConstraintsApp.class.getName();
45 static String appJar = null;
46 static String appClasses[] = {
47 mainClass,
48 HttpHandler.class.getName(),
49 HttpExchange.class.getName(),
50 Asserts.class.getName(),
51 MyHttpHandler.class.getName(),
52 MyHttpHandlerB.class.getName(),
53 MyHttpHandlerC.class.getName(),
54 MyClassLoader.class.getName()
55 };
|
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 * @test
26 * @requires vm.cds
27 * @summary Test class loader constraint checks for archived classes (dynamic archive)
28 * @library /test/lib
29 * /test/hotspot/jtreg/runtime/cds/appcds
30 * /test/hotspot/jtreg/runtime/cds/appcds/test-classes
31 * /test/hotspot/jtreg/runtime/cds/appcds/dynamicArchive
32 * @modules java.base/jdk.internal.misc
33 * jdk.httpserver
34 * @build sun.hotspot.WhiteBox
35 * @run driver ClassFileInstaller sun.hotspot.WhiteBox
36 * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. DynamicLoaderConstraintsTest
37 */
38
39 import com.sun.net.httpserver.HttpExchange;
40 import com.sun.net.httpserver.HttpHandler;
41 import jdk.test.lib.Asserts;
42
43 public class DynamicLoaderConstraintsTest extends DynamicArchiveTestBase {
44 static String mainClass = LoaderConstraintsApp.class.getName();
45 static String appJar = null;
46 static String appClasses[] = {
47 mainClass,
48 HttpHandler.class.getName(),
49 HttpExchange.class.getName(),
50 Asserts.class.getName(),
51 MyHttpHandler.class.getName(),
52 MyHttpHandlerB.class.getName(),
53 MyHttpHandlerC.class.getName(),
54 MyClassLoader.class.getName()
55 };
|