equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2006, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2006, 2019, 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. |
42 System.out.println("RedefineImplementorTarg's run"); |
42 System.out.println("RedefineImplementorTarg's run"); |
43 // @1 uncomment System.out.println("This is the new version of RedefineImplementorTarg"); |
43 // @1 uncomment System.out.println("This is the new version of RedefineImplementorTarg"); |
44 } |
44 } |
45 |
45 |
46 public static void main(String[] args) { |
46 public static void main(String[] args) { |
47 Runnable r = new B(); |
47 Runnable r = new RedefineImplementorB(); |
48 B.func(r); |
48 RedefineImplementorB.func(r); |
49 B.func(r); // @1 breakpoint |
49 RedefineImplementorB.func(r); // @1 breakpoint |
50 } |
50 } |
51 |
51 |
52 } |
52 } |
53 |
53 |
54 class B extends RedefineImplementorTarg { |
54 class RedefineImplementorB extends RedefineImplementorTarg { |
55 static void func(Runnable r) { |
55 static void func(Runnable r) { |
56 r.run(); |
56 r.run(); |
57 } |
57 } |
58 } |
58 } |
59 |
59 |