T6880344.java revision 560
560N/A/*
560N/A * Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
560N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
560N/A *
560N/A * This code is free software; you can redistribute it and/or modify it
560N/A * under the terms of the GNU General Public License version 2 only, as
560N/A * published by the Free Software Foundation.
560N/A *
560N/A * This code is distributed in the hope that it will be useful, but WITHOUT
560N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
560N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
560N/A * version 2 for more details (a copy is included in the LICENSE file that
560N/A * accompanied this code).
560N/A *
560N/A * You should have received a copy of the GNU General Public License version
560N/A * 2 along with this work; if not, write to the Free Software Foundation,
560N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
560N/A *
560N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
560N/A * CA 95054 USA or visit www.sun.com if you need additional information or
560N/A * have any questions.
560N/A */
560N/A
560N/A/*
560N/A * @test
560N/A * @bug 6880344
560N/A * @summary Recursive type parameters do not compile
560N/A * @author mcimadamore
560N/A * @compile T6880344.java
560N/A */
560N/A
560N/Aclass T6880344 {
560N/A static class A<X1 extends G<X1>> {
560N/A public A<N<X1>> xyz;
560N/A }
560N/A
560N/A static class N<X2 extends G<X2>> implements G<N<X2>> { }
560N/A
560N/A interface G<X3 extends G<X3>> { }
560N/A}