Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 314931

Summary: [projection] IllegalStateExceptions using folding in the Java editor
Product: [Eclipse Project] JDT Reporter: Karen Butzke <karenfbutzke>
Component: TextAssignee: Dani Megert <daniel_megert>
Status: CLOSED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: daniel_megert, darin.eclipse, markus.kell.r, remy.suen
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
stack trace
none
Fix none

Description Karen Butzke CLA 2010-05-28 14:20:11 EDT
I am using build eclipse-SDK-I20100527-1200-win32.zip

I had to kill eclipse in the task manager because I could not continue editing. The attached IllegalStateException kept being logged. Given the below example you can see the exception by using folding and closing the attribute a in the java editor. After doing that notice that the folding icons no longer appear. If you continue to click around in the java editor the exception will keep happening. 

public class Foo {
    
    @SuppressWarnings
    private int a;

}
Comment 1 Remy Suen CLA 2010-05-28 16:14:36 EDT
(In reply to comment #0)
> The attached IllegalStateException kept being logged.

There is nothing attached to this bug.
Comment 2 Karen Butzke CLA 2010-05-28 17:25:09 EDT
Created attachment 170433 [details]
stack trace

whoops, attached the stack trace
Comment 3 Remy Suen CLA 2010-05-31 08:32:14 EDT
I just got hit by the same problem. Clicking the 'X' to close the shell didn't work but 'File > Exit' worked for me.
Comment 4 Remy Suen CLA 2010-05-31 08:37:13 EDT
This may be a Text problem actually. Text, please advise.
Comment 5 Dani Megert CLA 2010-05-31 08:45:43 EDT
I can reproduce but I can also easily use File > Save and/or close the editor by clicking on the [x] and continue working.
Comment 6 Dani Megert CLA 2010-05-31 08:46:04 EDT

*** This bug has been marked as a duplicate of bug 313972 ***
Comment 7 Dani Megert CLA 2010-06-01 03:00:05 EDT
Not a duplicate of bug 313972, see bug 313972 comment 17.

There's already a +1 from Darin to fix this, see bug 13972 comment 20.

Markus, please review.
Comment 8 Dani Megert CLA 2010-06-01 03:01:11 EDT
Created attachment 170612 [details]
Fix
Comment 9 Dani Megert CLA 2010-06-01 03:04:27 EDT
Risk assessment see bug 313972 comment 15.
Comment 10 Dani Megert CLA 2010-06-01 09:26:07 EDT
After further investigations it turns out to be the same problem as bug 313972.

*** This bug has been marked as a duplicate of bug 313972 ***
Comment 11 Darin Wright CLA 2010-06-01 09:41:05 EDT
just adding my +1