Bug 195004 - [push down] error due to undefined method
Summary: [push down] error due to undefined method
Status: CLOSED DUPLICATE of bug 211861
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-30 02:13 EDT by kely_garcia CLA
Modified: 2010-06-15 16:02 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 kely_garcia CLA 2007-06-30 02:13:21 EDT
Build ID: I20070608-1718

Steps To Reproduce:
Push down method m on the following:

public class A {  
  public void m(){
  }
}
class B extends A {
  void mPrime(){
    new A().m();
  }
}

Yields the following refactored code:

public class A {
}
class B extends A {
  void mPrime(){
    new A().m();
  }

public void m() {
  }
}

The compilation error is: "method m() is undefined for type A"

More information:
Comment 1 Olivier Thomann CLA 2007-07-01 18:17:20 EDT
Move to JDT/UI
Comment 2 Deepak Azad CLA 2010-06-15 16:02:59 EDT

*** This bug has been marked as a duplicate of bug 211861 ***