Community
Participate
Working Groups
HEAD - have: package xy; import java.util.ArrayList; public class MyList<Element> extends ArrayList<Element> { } - in the type body, invoke Content Assist and choose 'add(Element): boolean' => the inserted code is: public boolean add(Element e) {}; => expected: Same as when I use Source > Override/Implement Methods...: @Override public boolean add(Element e) { return super.add(e); } This is only broken for methods with an argument type that is a type variable. Works fine for contains(Object), get(int), and addAll(Collection<? extends Element>).
The OverrideCompletionProposal calls Bindings.findMethodInHierarchy(ITypeBinding, String, String[]) which doesn't handle generics. Markus, you know that code better than I do. Can you take a look? We should probably replace all usages of that method and eventually get rid of it.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.