Bug 6680

Summary: extract method: incorrect return statement inserted - compile errors
Product: [Eclipse Project] JDT Reporter: Adam Kiezun <akiezun>
Component: UIAssignee: Dirk Baeumer <dirk_baeumer>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

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