Thu, 27 Aug 2009 11:08:27 -0700
6875336: some tests should use /nodynamiccopyright/
Reviewed-by: darcy
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 | } |