Summary: | [compiler][1.5] eclipse fails to compile when two methods are joined to one | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Rémi Forax <forax> |
Component: | Core | Assignee: | Kent Johnson <kent_johnson> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | channingwalton, philippe_mulet |
Version: | 3.2 | ||
Target Milestone: | 3.3 M5 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Rémi Forax
2006-10-19 05:55:09 EDT
We shouldn't complain about duplicates when a concrete method implements abstract methods because of type variable substitution. Added MethodVerifyTest 120 Released for 3.3 M5 in HEAD stream Verified for 3.3M5 using I20070205-0009. I've come across a similar problem which might be the same bug. I don't want to create a new bug if it is. My code: public class Foo<V, E> { public int getThing(V v) { return 1; } public boolean getThing(E e) { return true; } } public class Bar<V,E> extends Foo<V,E> { } The error is: Duplicate methods named getThing with the parameters (E) and (V) are defined by the type Foo<V,E> Is it the same? Its definitely similar but not a duplicate of this bug. Please open a new bug. thx |