test/tools/javac/generics/wildcards/6651719/T6651719b.java

Thu, 23 Oct 2008 18:29:11 +0100

author
mcimadamore
date
Thu, 23 Oct 2008 18:29:11 +0100
changeset 158
c6e3fc6dda61
parent 78
77dba8b57346
permissions
-rw-r--r--

6557954: Inner class type parameters doesn't get substituted when checking type well-formedness
Summary: Validator.visitTypeApply should substitute all formal typevars with actual parameters
Reviewed-by: jjg

mcimadamore@78 1 /*
mcimadamore@78 2 * Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
mcimadamore@78 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
mcimadamore@78 4 *
mcimadamore@78 5 * This code is free software; you can redistribute it and/or modify it
mcimadamore@78 6 * under the terms of the GNU General Public License version 2 only, as
mcimadamore@78 7 * published by the Free Software Foundation.
mcimadamore@78 8 *
mcimadamore@78 9 * This code is distributed in the hope that it will be useful, but WITHOUT
mcimadamore@78 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
mcimadamore@78 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
mcimadamore@78 12 * version 2 for more details (a copy is included in the LICENSE file that
mcimadamore@78 13 * accompanied this code).
mcimadamore@78 14 *
mcimadamore@78 15 * You should have received a copy of the GNU General Public License version
mcimadamore@78 16 * 2 along with this work; if not, write to the Free Software Foundation,
mcimadamore@78 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
mcimadamore@78 18 *
mcimadamore@78 19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
mcimadamore@78 20 * CA 95054 USA or visit www.sun.com if you need additional information or
mcimadamore@78 21 * have any questions.
mcimadamore@78 22 */
mcimadamore@78 23
mcimadamore@78 24 /*
mcimadamore@78 25 * @test
mcimadamore@78 26 * @bug 6651719
mcimadamore@78 27 * @summary Compiler crashes possibly during forward reference of TypeParameter
mcimadamore@78 28 * @compile T6651719b.java
mcimadamore@78 29 */
mcimadamore@78 30 import java.util.*;
mcimadamore@78 31
mcimadamore@78 32 public class T6651719b {
mcimadamore@78 33 <T> void m(T t, List<? super List<T>> list) {}
mcimadamore@78 34 void test(List<? super List<?>> list) {
mcimadamore@78 35 m("", list);
mcimadamore@78 36 }
mcimadamore@78 37 }

mercurial