Summary: | [1.5] The return type is incompatible | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Igor Fedorenko <igor> |
Component: | Core | Assignee: | Kent Johnson <kent_johnson> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | johan.walles |
Version: | 3.0 | ||
Target Milestone: | 3.1 M1 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Igor Fedorenko
2004-07-08 11:28:03 EDT
Problem is in method verifier, method is claimed to be not compatible with super method: public <T> T[] toArray(T[] a) Note that if defining original type as: package test.cheetah; public class IncompatibleReturnType extends java.util.ArrayList<Object> { public Object[] toArray(Object[] a) { return super.toArray(a); } } then a name clash would be signalled. The fact a raw type is used means that all type parameters are erased as well from generic methods. *** Bug 70098 has been marked as a duplicate of this bug. *** Released changes to erase generic method type parameters on raw types. Fixed in Head. test149 |