251N/A/*
553N/A * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
251N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
251N/A *
251N/A * This code is free software; you can redistribute it and/or modify it
251N/A * under the terms of the GNU General Public License version 2 only, as
251N/A * published by the Free Software Foundation.
251N/A *
251N/A * This code is distributed in the hope that it will be useful, but WITHOUT
251N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
251N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
251N/A * version 2 for more details (a copy is included in the LICENSE file that
251N/A * accompanied this code).
251N/A *
251N/A * You should have received a copy of the GNU General Public License version
251N/A * 2 along with this work; if not, write to the Free Software Foundation,
251N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
251N/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.
251N/A */
251N/A
251N/A/*
251N/A * @test
251N/A * @bug 6182950
251N/A * @summary methods clash algorithm should not depend on return type
251N/A * @author mcimadamore
251N/A * @compile T6182950c.java
251N/A */
251N/A
251N/Aclass T6182950c {
251N/A static abstract class A<X> {
251N/A abstract Object m(X x);
251N/A }
251N/A
251N/A static abstract class B<X> extends A<X> {
251N/A Number m(X x) {return 0;}
251N/A }
251N/A
251N/A final static class C<X> extends B<X> {
251N/A Integer m(X x) {return 0;}
251N/A }
251N/A}