equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2017, 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. |
26 * @test |
26 * @test |
27 * @bug 8154587 |
27 * @bug 8154587 |
28 * @summary Check that invokevirtual of clone() calls java.lang.Object.clone() |
28 * @summary Check that invokevirtual of clone() calls java.lang.Object.clone() |
29 * even if a superinterface has a default method named clone(). |
29 * even if a superinterface has a default method named clone(). |
30 * @compile DefMethClone.jasm SuperClass.jasm I1.java NoLocalClone.jasm |
30 * @compile DefMethClone.jasm SuperClass.jasm I1.java NoLocalClone.jasm |
31 * @run main/othervm -noverify NoLocalClone |
31 * @run main/othervm -XX:-BytecodeVerificationRemote -XX:-BytecodeVerificationLocal NoLocalClone |
32 */ |
32 */ |
33 |
33 |
34 // The below .jasm code implements the following java code: |
34 // The below .jasm code implements the following java code: |
35 // |
35 // |
36 // public class NoLocalClone extends SuperClass implements Cloneable,I1 { |
36 // public class NoLocalClone extends SuperClass implements Cloneable,I1 { |