Bug 7053 - Delete method shifts following bracket
Summary: Delete method shifts following bracket
Status: RESOLVED FIXED
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: Adam Kiezun CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-12-18 11:39 EST by Martin Aeschlimann CLA
Modified: 2001-12-20 05:15 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 Martin Aeschlimann CLA 2001-12-18 11:39:52 EST
smoke 11218
JUnit: TestRunner.java

1. Add a new Method at the end of the file
	private void foo() {
	}
} < closing bracket of the class
2. Without saving delete the method in the outliner
3. closing bracket of the class is shifted
	}
Comment 1 Erich Gamma CLA 2001-12-19 08:06:50 EST
adam is the new delete pls check, could also be an interaction with auto indent.
Comment 2 Adam Kiezun CLA 2001-12-19 09:00:02 EST
don't know how to solve this nicely - i delete the method source range 
(+ the trailing semicolon and everything until the line break)

will have to consume the leading tabs as well, i think
Comment 3 Martin Aeschlimann CLA 2001-12-19 09:20:37 EST
i guess the tabs leading the methods have to be removed as well. 
Comment 4 Adam Kiezun CLA 2001-12-19 09:52:01 EST
have a fix - won't release now 
(editor is extremally sensitive to deletion ranges - off by one and it's toast)
needs more testsing
Comment 5 Adam Kiezun CLA 2001-12-20 05:15:43 EST
fixed >= 20011220