Bug 395862 - [push down] Push down method does not detect a reference to the method if there is a recursive invocation
Summary: [push down] Push down method does not detect a reference to the method if the...
Status: CLOSED DUPLICATE of bug 211861
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.2.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-05 16:49 EST by Milos Gligoric CLA
Modified: 2012-12-18 00:08 EST (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 Milos Gligoric CLA 2012-12-05 16:49:45 EST
Steps to reproduce:
1. Invoke "Push Down" on 'f' method in code below
2. The resulting code does not compile ("The method f() is undefined for the type PushDownBug2")

class PushDownBug2 {
    // Invoke "Push Down" on 'f'
    void f() {
        f(); // <<< This *recursive* method call is necessary
    }

    void g() {
        f(); // <<< Eclipse failed to detect this reference to f()
    }
}

class C2 extends PushDownBug2 {
}

Maybe related to bug 211861.

(Thanks to Yilong Li for helping with the bug report.)
Comment 1 Martin Mathew CLA 2012-12-18 00:08:33 EST
Issue is reproducible using I20121210-0800. The refactoring results in compiler error.

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