Summary: | [1.5][compiler] Incorrectly report ambiguity of static methods with generics | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Ildar Safarov <ildar.safarov> |
Component: | Core | Assignee: | Kent Johnson <kent_johnson> |
Status: | VERIFIED DUPLICATE | QA Contact: | |
Severity: | major | ||
Priority: | P3 | CC: | jarthana, Olivier_Thomann, philippe_mulet, srikanth_sankaran, yozh |
Version: | 3.4 | ||
Target Milestone: | 3.5 M7 | ||
Hardware: | PC | ||
OS: | Linux | ||
Whiteboard: |
Description
Ildar Safarov
2008-04-03 06:15:44 EDT
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) |