Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 377184

Summary: [content assist] Override method proposal does not format in subclass with type parameter
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: TextAssignee: Markus Keller <markus.kell.r>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: markus.kell.r
Version: 3.8   
Target Milestone: 3.8 M7   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Markus Keller CLA 2012-04-19 09:30:42 EDT
Override method proposal does not format the resulting method in cases where a subclass has a type parameter and forwards it to the superclass.

Example:

package bug;
class Super<T> {
    void foo(T t) {
    }
}
public class Impl<T2 extends Number> extends Super<T2> {
    foo
}


Result:

    void foo(T2 t) {};

Problem is a bad subsignature implementation in Bindings#isEqualMethod(IMethodBinding, String, String[])