Bug 6680 - extract method: incorrect return statement inserted - compile errors
Summary: extract method: incorrect return statement inserted - compile errors
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dirk Baeumer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-12-07 12:42 EST by Adam Kiezun CLA
Modified: 2002-01-24 13:40 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Kiezun CLA 2001-12-07 12:42:57 EST
class A {
	int i(){ return 0;}
	void m(){
		/*[*/i();
		m();/*]*/
	}
}

refactors incorectly to:
class A {
	int i(){ return 0;}
	void m(){
		xxx();/*]*/
	}
	private int xxx() {
		return /*[*/i();
		m();
	}
}
Comment 1 Dirk Baeumer CLA 2002-01-24 13:40:49 EST
Fixed in build > 20020124