mcimadamore@59: /* mcimadamore@59: * Copyright 2008 Sun Microsystems, Inc. All Rights Reserved. mcimadamore@59: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. mcimadamore@59: * mcimadamore@59: * This code is free software; you can redistribute it and/or modify it mcimadamore@59: * under the terms of the GNU General Public License version 2 only, as mcimadamore@59: * published by the Free Software Foundation. mcimadamore@59: * mcimadamore@59: * This code is distributed in the hope that it will be useful, but WITHOUT mcimadamore@59: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or mcimadamore@59: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License mcimadamore@59: * version 2 for more details (a copy is included in the LICENSE file that mcimadamore@59: * accompanied this code). mcimadamore@59: * mcimadamore@59: * You should have received a copy of the GNU General Public License version mcimadamore@59: * 2 along with this work; if not, write to the Free Software Foundation, mcimadamore@59: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. mcimadamore@59: * mcimadamore@59: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, mcimadamore@59: * CA 95054 USA or visit www.sun.com if you need additional information or mcimadamore@59: * have any questions. mcimadamore@59: */ mcimadamore@59: mcimadamore@59: /* mcimadamore@59: * @test mcimadamore@59: * @bug 6294779 mcimadamore@59: * @summary Problem with interface inheritance and covariant return types mcimadamore@59: * @author Maurizio Cimadamore mcimadamore@59: * @compile T6294779b.java mcimadamore@59: */ mcimadamore@59: mcimadamore@59: import java.util.*; mcimadamore@59: mcimadamore@59: class T6294779b { mcimadamore@59: mcimadamore@59: interface I1 { mcimadamore@59: List m(); mcimadamore@59: } mcimadamore@59: mcimadamore@59: interface I2 { mcimadamore@59: Queue m(); mcimadamore@59: } mcimadamore@59: mcimadamore@59: interface I3 { mcimadamore@59: LinkedList m(); mcimadamore@59: } mcimadamore@59: mcimadamore@59: interface I4 extends I1, I2, I3 {} mcimadamore@59: }