Summary: | [1.5][compiler] Invalid ambiguous method error | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | sunrie <sunrie> |
Component: | Core | Assignee: | Kent Johnson <kent_johnson> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 3.1.1 | ||
Target Milestone: | 3.2 M6 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
sunrie
2006-01-16 05:31:57 EST
3.2 still exhibits the same behavior. I thought this was fixed for 3.2M5, but it seems not Try testing with this code also, without line marked /*1*/ both 2 and 3 show as errors, with line 1 only 3 shows as an error! package test; import java.util.List; import java.util.Set; public class Test { interface OrderedSet<E> extends List<E>, Set<E> { /*1*/ boolean add(E o); } public static void main(String[] args) { OrderedSet<String> os = null; /*2*/ os.add("hello"); OrderedSet<Integer> os2 = null; /*3*/ os2.add(1); } } Added AmbiguousMethod test008 and test009 Verified for 3.2 M6 using warm-up build I20060327-0010. |