Mon, 01 Jul 2013 14:57:03 +0100
7034798: Ambiguity error for abstract method call is too eager
Summary: Javac should wait and see if ambiguous methods can be reconciled at the end of an overload resolution round
Reviewed-by: jjg, vromero
1 /*
2 * @test /nodynamiccopyright/
3 * @bug 6734819
4 * @summary Javac performs flows analysis on already translated classes
5 * @author Maurizio Cimadamore
6 *
7 * @compile/fail/ref=T6734819c.out -XDrawDiagnostics -Xlint:all -XDverboseCompilePolicy T6734819c.java
8 */
9 class Y extends W {}
10 class W extends Z {}
12 class Z {
13 void m(Z z) {
14 return;
15 W w = (W)z;
16 }
17 }