Bug 7892

Summary: extract method: incorrect on nested loops (compile errors)
Product: [Eclipse Project] JDT Reporter: Adam Kiezun <akiezun>
Component: UIAssignee: Dirk Baeumer <dirk_baeumer>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: daniel_megert
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Adam Kiezun CLA 2002-01-18 12:33:54 EST
public class A{
	void f(){
		for (int i = 0; i < 10; i++) {
			/*[*/for (int j = 0; j < 10; j++) {
			}/*]*/
		}
	}
}

the new method is:
	protected int dd() {
		/*[*/for (int j = 0; j < 10; j++) {
		}
		return j;
	}

which results in a compile error
Comment 1 Dirk Baeumer CLA 2002-01-21 08:17:29 EST
*** Bug 6620 has been marked as a duplicate of this bug. ***
Comment 2 Dirk Baeumer CLA 2002-01-22 05:12:18 EST
Fixed in build > iX-20020115
Comment 3 Andre Weinand CLA 2002-03-28 05:23:49 EST
Verified.