test/tools/javac/6734819/T6734819c.java

Thu, 21 Feb 2013 15:26:46 +0000

author
mcimadamore
date
Thu, 21 Feb 2013 15:26:46 +0000
changeset 1599
9f0ec00514b6
parent 384
ed31953ca025
child 2525
2eb010b6cb22
permissions
-rw-r--r--

8007461: Regression: bad overload resolution when inner class and outer class have method with same name
Summary: Fix regression in varargs method resolution introduced by bad refactoring
Reviewed-by: jjg

mcimadamore@95 1 /*
jjg@384 2 * @test /nodynamiccopyright/
mcimadamore@95 3 * @bug 6734819
mcimadamore@95 4 * @summary Javac performs flows analysis on already translated classes
mcimadamore@95 5 * @author Maurizio Cimadamore
mcimadamore@95 6 *
mcimadamore@95 7 * @compile/fail/ref=T6734819c.out -XDrawDiagnostics -Xlint:all -XDverboseCompilePolicy T6734819c.java
mcimadamore@95 8 */
mcimadamore@95 9 class Y extends W {}
mcimadamore@95 10 class W extends Z {}
mcimadamore@95 11
mcimadamore@95 12 class Z {
mcimadamore@95 13 void m(Z z) {
mcimadamore@95 14 return;
mcimadamore@95 15 W w = (W)z;
mcimadamore@95 16 }
mcimadamore@95 17 }

mercurial