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