Bug 328760 - [clean up] Override method in types that join implementation and interface
Summary: [clean up] Override method in types that join implementation and interface
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-26 14:35 EDT by Markus Keller CLA
Modified: 2010-10-27 02:30 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.