test/tools/javac/varargs/T6746184.java

Wed, 10 Mar 2010 16:23:18 -0800

author
jjg
date
Wed, 10 Mar 2010 16:23:18 -0800
changeset 525
9871ce4fd56f
parent 160
a23e1dc02698
child 554
9d9f26857129
permissions
-rw-r--r--

6933914: fix missing newlines
Reviewed-by: ohair

mcimadamore@160 1 /*
mcimadamore@160 2 * Copyright 2008 Sun Microsystems, Inc. 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 *
mcimadamore@160 19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
mcimadamore@160 20 * CA 95054 USA or visit www.sun.com if you need additional information or
mcimadamore@160 21 * have any 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 }

mercurial