test/tools/javac/parser/T4881269.java

Thu, 21 Feb 2013 15:26:46 +0000

author
mcimadamore
date
Thu, 21 Feb 2013 15:26:46 +0000
changeset 1599
9f0ec00514b6
parent 1305
9d47f4850714
child 2525
2eb010b6cb22
permissions
-rw-r--r--

8007461: Regression: bad overload resolution when inner class and outer class have method with same name
Summary: Fix regression in varargs method resolution introduced by bad refactoring
Reviewed-by: jjg

jjg@1171 1 /*
jjh@1305 2 * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
jjg@1171 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
jjg@1171 4 *
jjg@1171 5 * This code is free software; you can redistribute it and/or modify it
jjg@1171 6 * under the terms of the GNU General Public License version 2 only, as
jjg@1171 7 * published by the Free Software Foundation.
jjg@1171 8 *
jjg@1171 9 * This code is distributed in the hope that it will be useful, but WITHOUT
jjg@1171 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
jjg@1171 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
jjg@1171 12 * version 2 for more details (a copy is included in the LICENSE file that
jjg@1171 13 * accompanied this code).
jjg@1171 14 *
jjg@1171 15 * You should have received a copy of the GNU General Public License version
jjg@1171 16 * 2 along with this work; if not, write to the Free Software Foundation,
jjg@1171 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
jjg@1171 18 *
jjg@1171 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
jjg@1171 20 * or visit www.oracle.com if you need additional information or have any
jjg@1171 21 * questions.
jjg@1171 22 */
jjg@1171 23
jjg@1171 24 /*
jjg@1171 25 * @test
jjg@1171 26 * @bug 4881269
jjg@1171 27 * @summary improve diagnostic for ill-formed tokens
jjg@1171 28 * @compile/fail/ref=T4881269.out -XDrawDiagnostics T4881269.java
jjg@1171 29 */
jjg@1171 30
jjg@1171 31 public class T4881269 {
jjg@1171 32 java.io..PrintStream s;
jjg@1171 33 void m() { System.err..println(); }
jjg@1171 34 void m(Object.. o) { }
jjg@1171 35 }

mercurial