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

Bug 467024

Summary: [move method] binding of method call changes due to incomplete conflicting method check
Product: [Eclipse Project] JDT Reporter: Jongwook Kim <jongwook.kim>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: jongwook.kim, noopur_gupta
Version: 4.4.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug

Description Jongwook Kim CLA 2015-05-11 14:11:42 EDT
After A.m(B) is moved to B, the binding of method call m() inside B.n() is changed from C.m() to B.m().

class A {
  void m(B b) {
  }
}

class B extends C {
  void n() {
    m();
  }
}

class C {
  void m() {
  }
}

It occurs since JDT's conflicting method does not consider inheritance relationship.
Comment 1 Noopur Gupta CLA 2015-06-08 04:54:15 EDT
See MoveInstanceMethodProcessor#checkConflictingMethod.
Comment 2 Eclipse Genie CLA 2019-12-25 17:14:49 EST
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.