mcimadamore@615: /* mcimadamore@615: * Copyright 2010 Sun Microsystems, Inc. All Rights Reserved. mcimadamore@615: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. mcimadamore@615: * mcimadamore@615: * This code is free software; you can redistribute it and/or modify it mcimadamore@615: * under the terms of the GNU General Public License version 2 only, as mcimadamore@615: * published by the Free Software Foundation. mcimadamore@615: * mcimadamore@615: * This code is distributed in the hope that it will be useful, but WITHOUT mcimadamore@615: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or mcimadamore@615: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License mcimadamore@615: * version 2 for more details (a copy is included in the LICENSE file that mcimadamore@615: * accompanied this code). mcimadamore@615: * mcimadamore@615: * You should have received a copy of the GNU General Public License version mcimadamore@615: * 2 along with this work; if not, write to the Free Software Foundation, mcimadamore@615: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. mcimadamore@615: * mcimadamore@615: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, mcimadamore@615: * CA 95054 USA or visit www.sun.com if you need additional information or mcimadamore@615: * have any questions. mcimadamore@615: */ mcimadamore@615: mcimadamore@615: import java.util.List; mcimadamore@615: mcimadamore@615: /* mcimadamore@615: * @test mcimadamore@615: * @bug 6938454 mcimadamore@615: * mcimadamore@615: * @summary Unable to determine generic type in program that compiles under Java 6 mcimadamore@615: * @author mcimadamore mcimadamore@615: * @compile T6938454b.java mcimadamore@615: * mcimadamore@615: */ mcimadamore@615: mcimadamore@615: class T6938454b { mcimadamore@615: mcimadamore@615: static interface A {} mcimadamore@615: static interface B extends A {} mcimadamore@615: static class C implements B {} mcimadamore@615: mcimadamore@615: List m(List l, S s) { mcimadamore@615: return null; mcimadamore@615: } mcimadamore@615: mcimadamore@615: List test(List la) { mcimadamore@615: return m(la, new C()); mcimadamore@615: } mcimadamore@615: }