Community
Participate
Working Groups
Build ID: 3.4.0 I20080207-1530 Steps To Reproduce: === public class A { public static void hello() {} } public class B extends A { public static <T> void hello() {} } public class C { public static void main(String[] args) { B.hello(); // Eclipse reports ambiguty here } } === this example is correct but Eclipse reports ambiguty for B.hello() this error is reproduced only in 3.4 version, everything is fine in 3.3 More information:
This is the error I get from javac (both 1.5 & 1.6): C.java:3: reference to hello is ambiguous, both method hello() in A and method <T>hello() in B match
(In reply to comment #1) > This is the error I get from javac (both 1.5 & 1.6): > > C.java:3: reference to hello is ambiguous, both method hello() in A and method > <T>hello() in B match > Sorry for confusing example. Just wanted to throw away all real project things. I really have described behaviour editing my code in Eclipse while 1.6 javac says everything is ok. I'll try to reproduce bug in another example soon.
Bug 268837 contains a reproduceable testcase *** This bug has been marked as a duplicate of bug 268837 ***
Verified for 3.5M7 using I20090426-2000 (Duplicate of 268837)