langtools/test/tools/javac/generics/T6557954.java
author jjg
Wed, 10 Mar 2010 16:23:18 -0800
changeset 5213 6efe8a6d26eb
parent 1531 37df4e42719a
child 5520 86e4b9a9da40
permissions -rw-r--r--
6933914: fix missing newlines Reviewed-by: ohair

/*
 * Copyright 2008 Sun Microsystems, Inc.  All Rights Reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 *
 * This code is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 only, as
 * published by the Free Software Foundation.
 *
 * This code is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * version 2 for more details (a copy is included in the LICENSE file that
 * accompanied this code).
 *
 * You should have received a copy of the GNU General Public License version
 * 2 along with this work; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 *
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
 * CA 95054 USA or visit www.sun.com if you need additional information or
 * have any questions.
 */

/*
 * @test
 * @bug     6557954
 * @summary Inner class type parameters doesn't get substituted when checking type well-formedness
 * @author Maurizio Cimadamore
 *
 * @compile T6557954.java
 */

class T6557954<T> {
    class Foo<U extends T> {}
    T6557954<Number>.Foo<Integer> f;
}