Bug 7892 - extract method: incorrect on nested loops (compile errors)
Summary: extract method: incorrect on nested loops (compile errors)
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Dirk Baeumer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 6620 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-01-18 12:33 EST by Adam Kiezun CLA
Modified: 2002-03-28 05:23 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 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.