Bug 67682 - Eclipse hangs after undoing a live template code generation
Summary: Eclipse hangs after undoing a live template code generation
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2004-06-17 13:57 EDT by Jerry Lampi CLA
Modified: 2007-06-22 10:04 EDT (History)
0 users

See Also:


Attachments
Full debug dump attached as EclipseCtl-Z_HangDump.txt (26.04 KB, text/plain)
2004-06-17 13:58 EDT, Jerry Lampi CLA
no flags Details
Another dump, different way to get it (25.46 KB, text/plain)
2004-06-17 14:30 EDT, Jerry Lampi CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jerry Lampi CLA 2004-06-17 13:57:23 EDT
Version: 3.0.0
Build id: 200406110010

Eclipse hangs when you if the following:

Given this code:
	for(int i=0; i<2; i++) {
		System.out.println("i = " + i);
	} // end for

1) Place cursor after the System.out.println("i = " + i); line.
2) Press enter to insert a new line.
3) Type "if() " NOTE TRAILING SPACE (no quotes, of course).
4) Press enter to have the live template (or whatever is is called) invoked.
5) Press Ctl+Z to undo the code inserted by the live template.
6) Eclipse hangs indefinately.
Comment 1 Jerry Lampi CLA 2004-06-17 13:58:45 EDT
Created attachment 12408 [details]
Full debug dump attached as EclipseCtl-Z_HangDump.txt
Comment 2 Jerry Lampi CLA 2004-06-17 14:30:51 EDT
Created attachment 12411 [details]
Another dump, different way to get it

Version: 3.0.0
Build id: 200406110010

Evidently, Ctl-Z is the the only thing that can cause this.

Eclipse hangs when you do the following:

Given this code:

	if(0 != 999) {
		System.out.println("");
	} else {
		System.out.println("");
	}
	
1) Place your cursor on the " e " of the else statement.
2) Type "// end if " NOTE TRAILING SPACE (inserting a comment).
3) Press Shift then End to highlight to the end of the line.
4) Press down arrow a few times to highlight all code to the closing " } " of
the else.
5) Press the Del key to remove the highlighted text.
6) Eclipse hangs indefinately.
Comment 3 Frederic Fusier CLA 2004-06-18 06:36:47 EDT
Cannot reproduce it using build I200406172123 following both of your scenario
(be more precise on scenario 1 step 4: inserted text on enter strongly depend of
your java editor preferences...)
If you still get the problem with more recent build then reopen the bug.
Thx
Comment 4 Frederic Fusier CLA 2004-06-18 06:37:40 EDT
I've moved it to JDT/Text as looking at scenario, hang occured while inserting
or deleting text...
Comment 5 Dani Megert CLA 2007-06-22 09:58:52 EDT
Get rid of deprecated state.
Comment 6 Dani Megert CLA 2007-06-22 10:04:16 EDT
.