Thu, 21 Feb 2013 15:27:05 +0000
8008444: Inherited generic functional descriptors are merged incorrectly
Summary: Missing call to Types.createMethodWithThrownTypes
Reviewed-by: jjg
duke@1 | 1 | /** |
duke@1 | 2 | * @test /nodynamiccopyright/ |
duke@1 | 3 | * @bug 6359951 |
duke@1 | 4 | * @summary Crash when using class field |
duke@1 | 5 | * |
duke@1 | 6 | * |
jjg@611 | 7 | * @compile/fail/ref=T6359951.out -XDrawDiagnostics T6359951.java |
duke@1 | 8 | */ |
duke@1 | 9 | |
duke@1 | 10 | public class T6359951 { |
duke@1 | 11 | public static String x; |
duke@1 | 12 | public static class C {} |
duke@1 | 13 | class D<T> { } |
duke@1 | 14 | class E<T> extends D<T.classOfT> {} |
duke@1 | 15 | class F<T extends T6359951> extends D<T.x> {} |
duke@1 | 16 | class G<T extends T6359951> extends D<T.C> {} |
duke@1 | 17 | } |