| Summary: | [1.5][compiler] Casting Conversion ignores second bound of Type Variables | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Tim Hanson <thanson> |
| Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 3.1 | ||
| Target Milestone: | 3.1 RC2 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
Added GenericTypeTest#test716 Cast conversion check did not properly handle matching supertype comparison. Fixed Verified for 3.1 RC2 using build N20050607-0010 + JDT/Core HEAD Verified for 3.1 RC2 using build I20050610-0010 |
javac rejects the cast in the following program: class Outer<T extends Number & Comparable<String>> { void foo(T t) { Comparable<Integer> ci = (Comparable<Integer>) t; } }