Summary: | [1.5][compiler] Wrong Cast Allowed | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Carlos Aydos <carlos_aydos> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | critical | ||
Priority: | P3 | CC: | carlos_aydos |
Version: | 3.1 | ||
Target Milestone: | 3.1 RC1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Carlos Aydos
2005-05-12 19:53:14 EDT
Still failing using M7 candidate. Added GenericTypeTest#test661-665. Part of the issue was that when recursing on variable upper bound, it was actually using the upper bound erasure, and the check for final type was not strict enough. Fixed Verified for 3.1 RC1 with build I20050527-0010. Humm... actually I now think this code should be accepted, with unchecked warnings. Comparable<S> is not provably distinct from Comparable<Integer>. Interestingly, removing the bounds on S declaration make javac accept this code. Also see javac bugs in cast conversions: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6270087 |