equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2013, 2013, 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. |
24 import com.oracle.java.testlibrary.*; |
24 import com.oracle.java.testlibrary.*; |
25 |
25 |
26 /* |
26 /* |
27 * Test to redefine java/lang/Object and verify that it doesn't crash on vtable |
27 * Test to redefine java/lang/Object and verify that it doesn't crash on vtable |
28 * call on basic array type. |
28 * call on basic array type. |
|
29 * Test to redefine java/lang/ClassLoader and java/lang/reflect/Method to make |
|
30 * sure cached versions used afterward are the current version. |
29 * |
31 * |
30 * @test |
32 * @test |
31 * @bug 8005056 |
33 * @bug 8005056 |
|
34 * @bug 8009728 |
32 * @library /testlibrary |
35 * @library /testlibrary |
33 * @build Agent |
36 * @build Agent |
34 * @run main ClassFileInstaller Agent |
37 * @run main ClassFileInstaller Agent |
35 * @run main TestRedefineObject |
38 * @run main TestRedefineObject |
36 * @run main/othervm -javaagent:agent.jar Agent |
39 * @run main/othervm -javaagent:agent.jar -XX:TraceRedefineClasses=5 Agent |
37 */ |
40 */ |
38 public class TestRedefineObject { |
41 public class TestRedefineObject { |
39 public static void main(String[] args) throws Exception { |
42 public static void main(String[] args) throws Exception { |
40 |
43 |
41 PrintWriter pw = new PrintWriter("MANIFEST.MF"); |
44 PrintWriter pw = new PrintWriter("MANIFEST.MF"); |