Thu, 28 Feb 2013 14:05:52 +0000
8008537: Missing method reference lookup error when unbound search finds a static method
Summary: Static-ness check should be applied after member reference resolution
Reviewed-by: jjg
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 }