Summary: | [1.5] Type parameter bound <E extends Enum<E>> should be allowed | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Philipe Mulet <philippe_mulet> |
Component: | Core | Assignee: | Kent Johnson <kent_johnson> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.0 | ||
Target Milestone: | 3.1 M2 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Philipe Mulet
2004-07-29 10:33:27 EDT
Added regression test: GenericTypeTest#test271. Problem comes from the fact that while connecting hierarchy of E in X, its bound hasn't been set yet, and thus the bound check fails since E of Enum is expected to extend Enum<E>. Simpler testcase: public class X<T extends XY<T>> { } class XY<U extends Cloneable> implements Cloneable { } Fixed now that we delay the bounds checks til after all type variables are resolved AND force types referenced in bounds to be connected. See test271-273 Verified in I200409240100. |