Bug 6602 - extract method: syntax errors after extracting a block [refactoring]
Summary: extract method: syntax errors after extracting a block [refactoring]
Status: RESOLVED WONTFIX
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: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2001-12-05 12:59 EST by Adam Kiezun CLA
Modified: 2009-08-30 02:17 EDT (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-05 12:59:35 EST
package p;
class A{
	void m(){
		int i= 1 + 1;
		if (i < 0)/*[*/{
			i += i;
			return;
		}/*]*/ else
		 m();
	}
}
Comment 1 Dirk Baeumer CLA 2002-01-29 09:57:02 EST
Everything works fine if you select the statement inside a block. Since this is 
a rare case I would like to postpone > 2.0
Comment 2 Dirk Baeumer CLA 2002-01-29 09:57:39 EST
Changed resolution to LATER
Comment 3 Dirk Baeumer CLA 2002-07-25 14:25:49 EDT
Should simply not allow this.
Comment 4 Adam Kiezun CLA 2003-02-18 13:40:38 EST
btw, still broken in 20030217
Comment 5 Dirk Baeumer CLA 2003-04-28 06:02:57 EDT
Chaning state from assigned later to resolved later. Assigned later got 
introduced by the last bug conversion and is not a supported Eclipse bug state.
Comment 6 Denis Roy CLA 2009-08-30 02:17:53 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.