equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2015, 2016, 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. |
22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @summary Verifies the behaviour of Unsafe.defineClass |
26 * @summary Verifies the behaviour of Unsafe.defineClass |
27 * @library /testlibrary |
27 * @library /test/lib |
28 * @modules java.base/jdk.internal.misc |
28 * @modules java.base/jdk.internal.misc |
29 * java.compiler |
29 * java.compiler |
30 * java.management |
30 * java.management |
31 * @run main DefineClass |
31 * @run main DefineClass |
32 */ |
32 */ |
33 |
33 |
34 import java.security.ProtectionDomain; |
34 import java.security.ProtectionDomain; |
35 import java.io.InputStream; |
35 import java.io.InputStream; |
36 import jdk.test.lib.*; |
36 import jdk.test.lib.InMemoryJavaCompiler; |
|
37 import jdk.test.lib.Utils; |
37 import jdk.internal.misc.Unsafe; |
38 import jdk.internal.misc.Unsafe; |
38 import static jdk.test.lib.Asserts.*; |
39 import static jdk.test.lib.Asserts.*; |
39 |
40 |
40 public class DefineClass { |
41 public class DefineClass { |
41 public static void main(String args[]) throws Exception { |
42 public static void main(String args[]) throws Exception { |