58N/A/*
553N/A * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
58N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
58N/A *
58N/A * This code is free software; you can redistribute it and/or modify it
58N/A * under the terms of the GNU General Public License version 2 only, as
58N/A * published by the Free Software Foundation.
58N/A *
58N/A * This code is distributed in the hope that it will be useful, but WITHOUT
58N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
58N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
58N/A * version 2 for more details (a copy is included in the LICENSE file that
58N/A * accompanied this code).
58N/A *
58N/A * You should have received a copy of the GNU General Public License version
58N/A * 2 along with this work; if not, write to the Free Software Foundation,
58N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
58N/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.
58N/A */
58N/A
58N/A/*
58N/A * @test
58N/A * @bug 6294779
58N/A * @summary Problem with interface inheritance and covariant return types
58N/A * @author Maurizio Cimadamore
58N/A * @compile/fail T6294779c.java
58N/A */
58N/A
58N/Apublic class T6294779c<X> {
58N/A
58N/A interface A {}
58N/A
58N/A interface B {}
58N/A
58N/A interface C {}
58N/A
58N/A interface I1 {
58N/A T6294779c<? extends A> get();
58N/A }
58N/A
58N/A interface I2 {
58N/A T6294779c<? extends B> get();
58N/A }
58N/A
58N/A interface I3 {
58N/A T6294779c<? extends C> get();
58N/A }
58N/A
58N/A interface I4 extends I1, I2, I3 {}
58N/A}