Summary: | [1.5] Generics: bad method referenced when a type variable extends two types | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Luc Bourlier <eclipse> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.0 | ||
Target Milestone: | 3.1 M3 | ||
Hardware: | PC | ||
OS: | Linux | ||
Whiteboard: |
Description
Luc Bourlier
2004-09-15 20:46:52 EDT
Reproduced in latest. Problem comes from change of Runnable#run() receiver type to List#run(), as List is the erasure of type variable. Reversing the order of bounds is changing erasure to Runnable, and then method invocation is legite. Workaround is to explicitly cast before invoking method from Runnable. Tweak receiver genericCast insertion. Added regression tests: GenericTypeTest#test320 & test321. Fixed Verified for 3.1M3 with build I200411040100 |