Mon, 26 Mar 2012 15:28:49 +0100
7133185: Update 292 overload resolution logic to match JLS
Summary: Re-implement special overload resolution support for method handles according to the JLS SE 7 definition
Reviewed-by: jjg, dlsmith, jrose
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 }