Bug 4315 - extract method: incorrect method creation (1GLAD1H)
Summary: extract method: incorrect method creation (1GLAD1H)
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dirk Baeumer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 23:09 EDT by Dirk Baeumer CLA
Modified: 2002-02-08 03:55 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 Dirk Baeumer CLA 2001-10-10 23:09:39 EDT
AK (10/8/2001 6:22:28 PM)
	public class A {
		void f(){
			boolean d= /*[*/!true/*]*/;
		}
	}

	extract the selected fragment. the newly created method is incorrect, which causes compile errors:
	
	protected void a() {
		!true;
	}

NOTES:
Comment 1 Dirk Baeumer CLA 2001-11-09 06:34:08 EST
Fixed in build > 20011107