Bug 328760

Summary: [clean up] Override method in types that join implementation and interface
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert
Version: 3.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Markus Keller CLA 2010-10-26 14:35:35 EDT
HEAD, follow-up to bug 64319 comment 10

Example:

public interface IBarable {
  public void bar();
}

public class Foo {
  public void bar() {}
}

public class SubFoo extends Foo implements IBarable {
}


Request: Add a Clean Up that adds explicit implementations of "joiner" methods where they are missing. For the example above, it should add this to SubFoo:

  public void bar() {
    super.bar();
  }

For a real-life example of such retarded code, see TextHyperlinkSegment in org.eclipse.ui.forms which misses getBounds(). The call hierarchy of TextSegment#getBounds() is empty without the overriding method.