155N/A/*
553N/A * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
155N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
155N/A *
155N/A * This code is free software; you can redistribute it and/or modify it
155N/A * under the terms of the GNU General Public License version 2 only, as
155N/A * published by the Free Software Foundation.
155N/A *
155N/A * This code is distributed in the hope that it will be useful, but WITHOUT
155N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
155N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
155N/A * version 2 for more details (a copy is included in the LICENSE file that
155N/A * accompanied this code).
155N/A *
155N/A * You should have received a copy of the GNU General Public License version
155N/A * 2 along with this work; if not, write to the Free Software Foundation,
155N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
155N/A *
553N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
553N/A * or visit www.oracle.com if you need additional information or have any
553N/A * questions.
155N/A */
155N/A
155N/A/*
155N/A * @test
155N/A * @bug 6487370
155N/A * @author Maurizio Cimadamore
155N/A * @summary javac incorrectly gives ambiguity warning with override-equivalent abstract inherited methods
155N/A */
155N/A
155N/Apublic class T6487370 {
155N/A
155N/A interface I1 {
155N/A String m(Number n);
155N/A }
155N/A
155N/A interface I2 {
155N/A Object m(Number n);
155N/A }
155N/A
155N/A static abstract class X implements I1, I2 {
155N/A String test() {
155N/A return m(0.0f);
155N/A }
155N/A }
155N/A
155N/A static class W extends X {
155N/A public String m(Number n) {
155N/A return "Hello!";
155N/A }
155N/A }
155N/A
155N/A public static void main(String args[]) {
155N/A System.out.println(new W().test());
155N/A }
155N/A}