Summary: | [1.5][compiler] bug between inference and wilcard | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Rémi Forax <forax> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | jim |
Version: | 3.2 | ||
Target Milestone: | 3.1.2 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Rémi Forax
2005-10-13 11:10:20 EDT
Indeed, we should accept it. Current error is: List<? extends CharSequence> result = merge(list1, list2); ^^^^^^^^^^^^^^^^^^^ Type mismatch: cannot convert from List<Object&Serializable&CharSequence> to List<? extends CharSequence> which is clearly wrong. Seems to be an issue with intersection type. TypeBinding#isTypeArgumentContainedBy(...) did not properly handle intersection type. Fixed. Added GenericTypeTest#test842. Released in 3.1 maintenance and 3.2 branch. *** Bug 121231 has been marked as a duplicate of this bug. *** Verified for 3.1.2 in M20060109-0800. Verified for 3.2M4 in I20051215-1506 |