test/tools/javac/6902720/E1.java

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

author
mcimadamore
date
Thu, 21 Feb 2013 15:26:46 +0000
changeset 1599
9f0ec00514b6
parent 554
9d9f26857129
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@439 1 /*
ohair@554 2 * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
jjg@439 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
jjg@439 4 *
jjg@439 5 * This code is free software; you can redistribute it and/or modify it
jjg@439 6 * under the terms of the GNU General Public License version 2 only, as
jjg@439 7 * published by the Free Software Foundation.
jjg@439 8 *
jjg@439 9 * This code is distributed in the hope that it will be useful, but WITHOUT
jjg@439 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
jjg@439 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
jjg@439 12 * version 2 for more details (a copy is included in the LICENSE file that
jjg@439 13 * accompanied this code).
jjg@439 14 *
jjg@439 15 * You should have received a copy of the GNU General Public License version
jjg@439 16 * 2 along with this work; if not, write to the Free Software Foundation,
jjg@439 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
jjg@439 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.
jjg@439 22 */
jjg@439 23
jjg@439 24 enum E1 {
jjg@439 25 A,
jjg@439 26 B { },
jjg@439 27 C { void m() { } };
jjg@439 28 }

mercurial