Mon, 07 Feb 2011 18:10:13 +0000
7007615: java_util/generics/phase2/NameClashTest02 fails since jdk7/pit/b123.
Summary: override clash algorithm is not implemented correctly
Reviewed-by: jjg
mcimadamore@159 | 1 | /* |
jjg@384 | 2 | * @test /nodynamiccopyright/ |
mcimadamore@159 | 3 | * @bug 6680106 |
mcimadamore@159 | 4 | * @summary StackOverFlowError for Cyclic inheritance in TypeParameters with ArrayType Bounds |
mcimadamore@159 | 5 | * @author Maurizio Cimadamore |
mcimadamore@159 | 6 | * @compile/fail/ref=T6680106.out -XDrawDiagnostics T6680106.java |
mcimadamore@159 | 7 | */ |
mcimadamore@159 | 8 | |
mcimadamore@159 | 9 | class T6680106 { |
mcimadamore@159 | 10 | class A0 {} |
mcimadamore@159 | 11 | class A1<T extends T[]> {} |
mcimadamore@159 | 12 | class A2<T extends S[], S extends T[]> {} |
mcimadamore@159 | 13 | class A3<T extends S[], S extends U[], U extends T[]> {} |
mcimadamore@159 | 14 | class A5<T extends A0 & T[]> {} |
mcimadamore@159 | 15 | class A6<T extends A0 & S[], S extends A0 & T[]> {} |
mcimadamore@159 | 16 | class A7<T extends A0 & S[], S extends A0 & U[], U extends A0 & T[]> {} |
mcimadamore@159 | 17 | } |