Community
Participate
Working Groups
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.
Created attachment 12408 [details] Full debug dump attached as EclipseCtl-Z_HangDump.txt
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.
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
I've moved it to JDT/Text as looking at scenario, hang occured while inserting or deleting text...
Get rid of deprecated state.
.