MultipleInheritance.java revision 797:4868a36f6fd8
1139823Simp/* 2200838Sluigi * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved. 398943Sluigi * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 498943Sluigi * 598943Sluigi * This code is free software; you can redistribute it and/or modify it 698943Sluigi * under the terms of the GNU General Public License version 2 only, as 798943Sluigi * published by the Free Software Foundation. 898943Sluigi * 9116763Sluigi * This code is distributed in the hope that it will be useful, but WITHOUT 1098943Sluigi * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1198943Sluigi * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12105775Smaxim * version 2 for more details (a copy is included in the LICENSE file that 1398943Sluigi * accompanied this code). 1498943Sluigi * 1598943Sluigi * You should have received a copy of the GNU General Public License version 1698943Sluigi * 2 along with this work; if not, write to the Free Software Foundation, 1798943Sluigi * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1898943Sluigi * 1998943Sluigi * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2098943Sluigi * or visit www.oracle.com if you need additional information or have any 2198943Sluigi * questions. 2298943Sluigi */ 2398943Sluigi 2498943Sluigi/* 2598943Sluigi * @test 26172467Ssilby * @bug 4480813 27172467Ssilby * @summary generics problem with multiple interface extension 28172467Ssilby * @author gafter 2998943Sluigi * 30200601Sluigi * @compile MultipleInheritance.java 3198943Sluigi */ 3298943Sluigi 33134346Srupackage MultipleInheritance; 3498943Sluigi 35166479Salcimport java.util.*; 3698943Sluigi 3798943Sluigiinterface XList1 extends List, Collection {} 3898943Sluigi 3998943Sluigiinterface XList2<E> extends List<E>, Collection<E> {} 4098943Sluigi 41134346Sruinterface XList3<E> extends List<E>, Collection<E> 42152928Sume{ 43152928Sume public <T> T[] toArray(T[] target); 4498943Sluigi} 4598943Sluigi