mcimadamore@160: /* mcimadamore@160: * Copyright 2008 Sun Microsystems, Inc. All Rights Reserved. mcimadamore@160: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. mcimadamore@160: * mcimadamore@160: * This code is free software; you can redistribute it and/or modify it mcimadamore@160: * under the terms of the GNU General Public License version 2 only, as mcimadamore@160: * published by the Free Software Foundation. mcimadamore@160: * mcimadamore@160: * This code is distributed in the hope that it will be useful, but WITHOUT mcimadamore@160: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or mcimadamore@160: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License mcimadamore@160: * version 2 for more details (a copy is included in the LICENSE file that mcimadamore@160: * accompanied this code). mcimadamore@160: * mcimadamore@160: * You should have received a copy of the GNU General Public License version mcimadamore@160: * 2 along with this work; if not, write to the Free Software Foundation, mcimadamore@160: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. mcimadamore@160: * mcimadamore@160: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, mcimadamore@160: * CA 95054 USA or visit www.sun.com if you need additional information or mcimadamore@160: * have any questions. mcimadamore@160: */ mcimadamore@160: mcimadamore@160: /* mcimadamore@160: * @test mcimadamore@160: * @bug 6746184 mcimadamore@160: * @summary javac fails to compile call to public varargs method mcimadamore@160: */ mcimadamore@160: mcimadamore@160: public class T6746184 { mcimadamore@160: public static void main(String[] args) { mcimadamore@160: A.m(new Object()); mcimadamore@160: } mcimadamore@160: } mcimadamore@160: mcimadamore@160: class A { mcimadamore@160: public static void m(final Object... varargs) {} mcimadamore@160: private static void m(final Object singleArg) {} jjg@525: }