Thu, 06 Jun 2013 15:33:40 +0100
8008627: Compiler mishandles three-way return-type-substitutability
Summary: Compiler should not enforce an order in how ambiguous methods should be resolved
Reviewed-by: jjg, vromero
1 /**
2 * @test /nodynamiccopyright/
3 * @bug 6359951
4 * @summary Crash when using class field
5 *
6 *
7 * @compile/fail/ref=T6359951.out -XDrawDiagnostics T6359951.java
8 */
10 public class T6359951 {
11 public static String x;
12 public static class C {}
13 class D<T> { }
14 class E<T> extends D<T.classOfT> {}
15 class F<T extends T6359951> extends D<T.x> {}
16 class G<T extends T6359951> extends D<T.C> {}
17 }