Community
Participate
Working Groups
Build ID: I20090522-1710 Steps To Reproduce: public abstract class AbstractTest {public abstract Object m();} -- public interface InterfaceTest {Integer m();} -- public abstract class AbstractSubTest extends AbstractTest implements InterfaceTest { Object mO = new Object() {void m2() {AbstractSubTest.this.m();}}; } More information: Won't compile in JDK 1.6.0_14-b08: AbstractSubTest.java:4: reference to m is ambiguous, both method m() in AbstractTest and method m() in InterfaceTest match Object mO = new Object() {void m2() {AbstractSubTest.this.m();}}; As is often the case, Eclipse's behavior seems preferable. Maybe it's really a Java bug.
> Won't compile in JDK 1.6.0_14-b08 but it does compile with the version 7 beta (May 14th) I believe this is a javac bug that is fixed in the version 7 stream
Verified for 3.5RC4.