Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 63899 - Undo in collapsed folding causes wrong modification in java editor
Summary: Undo in collapsed folding causes wrong modification in java editor
Status: RESOLVED DUPLICATE of bug 61171
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-25 12:08 EDT by Markus Keller CLA
Modified: 2004-05-25 12:27 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 Markus Keller CLA 2004-05-25 12:08:04 EDT
I20040525-0800

- Have this in p/A.java:
<snip>
package p;

import java.util.HashMap;
import java.util.Vector;

class A {
	void method(Vector v, HashMap hm) {
		//- collapse imports fold
		//- add parameter ", Random r"
		//- set caret into "Random", Ctrl+Shift+M, Ctrl+Z
		//-> Undo is wrong!
	}
}
</snip>

- do the steps in the comments
-> result (not only in display; same after saving to disk):
<snip>
package p;

import java.util.HashMap;
import java.util.Random;
import java.util.Vector;

class A {
	void mor v, HashMap hm, Random r) {
		//- collapse imports fold
		//- add parameter ", Random r"
		//- set caret into "Random", Ctrl+Shift+M, Ctrl+Z
		//-> Undo is wrong!
	}
}
</snip>
Comment 1 Kai-Uwe Maetzel CLA 2004-05-25 12:27:43 EDT

*** This bug has been marked as a duplicate of 61171 ***