Summary: | [1.5] Unnecessary cast is required | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | shiraishi <shir> |
Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> |
Status: | RESOLVED INVALID | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | daniel_megert |
Version: | 3.1 | ||
Target Milestone: | 3.1 RC3 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
shiraishi
2005-06-13 05:26:08 EDT
I mistyped... sorry... [incorrect] public class bugClass<T extends testElement> extends testSuper<T>{ } [correct] public class bugClass<T extends bugElement> extends bugSuper<T>{ } *** Bug 99581 has been marked as a duplicate of this bug. *** Actually, we behave correctly. The superclass of raw bugClass is raw bugSuper. Thus the type of bugSuper#getData() is Object (as per formal bound of T on bugSuper). javac agrees with us. Added GenericTypeTest#test754 |