Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 394578 - [introduce parameter] Introduce parameter on method invocation (Expression Statement) yields compilation error
Summary: [introduce parameter] Introduce parameter on method invocation (Expression St...
Status: CLOSED DUPLICATE of bug 82149
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-11-19 11:08 EST by Milos Gligoric CLA
Modified: 2012-11-26 04:45 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-11-19 11:08:42 EST
Steps to reproduce:
1. Invoke "Introduce Parameter" refactoring on "e()" in code below
2. Use default settings
3. There is a compilation error in the resulting file ('Syntax error, insert "Assignment Operator Expression" to complete Expression')

interface I {
    void m();
}

public class IntroduceParameterBug1 implements I {

    public String e() {
        return null;
    }

    public void m() {
        // Invoke "Introduce Parameter" on "e()"
        e();
    }
}
Comment 1 Markus Keller CLA 2012-11-26 04:45:09 EST

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