Tue, 02 Nov 2010 12:00:54 +0000
6996415: Override bridges causes compiler-generated code to end up with synthetic infinite loop
Summary: temporarily disable fix for override bridges (6337171)
Reviewed-by: jjg
mcimadamore@561 | 1 | /* |
jjg@581 | 2 | * Copyright (c) 2009, 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 | } |