test/tools/javac/generics/typevars/T6880344.java

Tue, 28 Dec 2010 15:54:52 -0800

author
ohair
date
Tue, 28 Dec 2010 15:54:52 -0800
changeset 798
4868a36f6fd8
parent 581
f2fdd52e4e87
child 2525
2eb010b6cb22
permissions
-rw-r--r--

6962318: Update copyright year
Reviewed-by: xdono

mcimadamore@561 1 /*
ohair@798 2 * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
mcimadamore@561 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
mcimadamore@561 4 *
mcimadamore@561 5 * This code is free software; you can redistribute it and/or modify it
mcimadamore@561 6 * under the terms of the GNU General Public License version 2 only, as
mcimadamore@561 7 * published by the Free Software Foundation.
mcimadamore@561 8 *
mcimadamore@561 9 * This code is distributed in the hope that it will be useful, but WITHOUT
mcimadamore@561 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
mcimadamore@561 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
mcimadamore@561 12 * version 2 for more details (a copy is included in the LICENSE file that
mcimadamore@561 13 * accompanied this code).
mcimadamore@561 14 *
mcimadamore@561 15 * You should have received a copy of the GNU General Public License version
mcimadamore@561 16 * 2 along with this work; if not, write to the Free Software Foundation,
mcimadamore@561 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
mcimadamore@561 18 *
jjg@581 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
jjg@581 20 * or visit www.oracle.com if you need additional information or have any
jjg@581 21 * questions.
mcimadamore@561 22 */
mcimadamore@561 23
mcimadamore@561 24 /*
mcimadamore@561 25 * @test
mcimadamore@561 26 * @bug 6880344
mcimadamore@561 27 * @summary Recursive type parameters do not compile
mcimadamore@561 28 * @author mcimadamore
mcimadamore@561 29 * @compile T6880344.java
mcimadamore@561 30 */
mcimadamore@561 31
mcimadamore@561 32 class T6880344 {
mcimadamore@561 33 static class A<X1 extends G<X1>> {
mcimadamore@561 34 public A<N<X1>> xyz;
mcimadamore@561 35 }
mcimadamore@561 36
mcimadamore@561 37 static class N<X2 extends G<X2>> implements G<N<X2>> { }
mcimadamore@561 38
mcimadamore@561 39 interface G<X3 extends G<X3>> { }
mcimadamore@561 40 }

mercurial