Mon, 17 Oct 2011 12:57:36 +0100
7093325: Redundant entry in bytecode exception table
Summary: Inlining of finalizers does not update gaps list accordingly
Reviewed-by: jjg
mcimadamore@160 | 1 | /* |
ohair@798 | 2 | * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. |
mcimadamore@160 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
mcimadamore@160 | 4 | * |
mcimadamore@160 | 5 | * This code is free software; you can redistribute it and/or modify it |
mcimadamore@160 | 6 | * under the terms of the GNU General Public License version 2 only, as |
mcimadamore@160 | 7 | * published by the Free Software Foundation. |
mcimadamore@160 | 8 | * |
mcimadamore@160 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
mcimadamore@160 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
mcimadamore@160 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
mcimadamore@160 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
mcimadamore@160 | 13 | * accompanied this code). |
mcimadamore@160 | 14 | * |
mcimadamore@160 | 15 | * You should have received a copy of the GNU General Public License version |
mcimadamore@160 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
mcimadamore@160 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
mcimadamore@160 | 18 | * |
ohair@554 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ohair@554 | 20 | * or visit www.oracle.com if you need additional information or have any |
ohair@554 | 21 | * questions. |
mcimadamore@160 | 22 | */ |
mcimadamore@160 | 23 | |
mcimadamore@160 | 24 | /* |
mcimadamore@160 | 25 | * @test |
mcimadamore@160 | 26 | * @bug 6746184 |
mcimadamore@160 | 27 | * @summary javac fails to compile call to public varargs method |
mcimadamore@160 | 28 | */ |
mcimadamore@160 | 29 | |
mcimadamore@160 | 30 | public class T6746184 { |
mcimadamore@160 | 31 | public static void main(String[] args) { |
mcimadamore@160 | 32 | A.m(new Object()); |
mcimadamore@160 | 33 | } |
mcimadamore@160 | 34 | } |
mcimadamore@160 | 35 | |
mcimadamore@160 | 36 | class A { |
mcimadamore@160 | 37 | public static void m(final Object... varargs) {} |
mcimadamore@160 | 38 | private static void m(final Object singleArg) {} |
jjg@525 | 39 | } |