This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build: NetBeans IDE Dev (Build 201209260001) VM: Java HotSpot(TM) Client VM, 20.4-b02, Java(TM) SE Runtime Environment, 1.6.0_29-b11 OS: Windows XP User Comments: dagguh: Every time I edit a class that has compilation errors, I get this exception. theosib: Tried to delete some code dagguh: Ok, I get this almost all the time. I generated a getter and it appears that it does not have a fold marker [-] [+] The rest of methods, that existed when I started editing the class have those markers theosib: Pasted some code theosib: Typed a line with { at the end and then pressed return. Stacktrace: java.lang.IllegalStateException: Attempt to use the fold [code-block] E1 <4251,10271>, desc='{...}', hash=0x214a88, [4252, 10270] {4252, 10270} with invalid fold operation org.netbeans.modules.editor.fold.FoldOperationImpl@4a9f5d instead of org.netbeans.modules.editor.fold.FoldOperationImpl@124a234 at org.netbeans.modules.editor.fold.FoldOperationImpl.checkFoldOperation(FoldOperationImpl.java:242) at org.netbeans.modules.editor.fold.FoldOperationImpl.removeFromHierarchy(FoldOperationImpl.java:189) at org.netbeans.spi.editor.fold.FoldOperation.removeFromHierarchy(FoldOperation.java:182) at org.netbeans.modules.java.editor.fold.JavaElementFoldManager$CommitFolds.run(JavaElementFoldManager.java:372) at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1353) at org.netbeans.modules.java.editor.fold.JavaElementFoldManager$CommitFolds.run(JavaElementFoldManager.java:347)
Created attachment 124970 [details] stacktrace
Created attachment 124977 [details] stacktrace
Created attachment 124978 [details] stacktrace
Created attachment 124979 [details] stacktrace
Created attachment 124980 [details] stacktrace Hit enter before last } in a class to be able to enter a new method.
Created attachment 124981 [details] stacktrace Started to type in a new method, started to type "public " and the exception occured when I hit "s" (as I was going to type "static")
Hmm... This occurs a little too often, a status change is in order I think... Also note: there is no folded code in the source triggering this error! It is a POJO!
Created attachment 124982 [details] stacktrace started to type "st" as in static, just after reporting #613796
Changeset: 5aaa19c1b291 Author: Svata Dedic <sdedic@netbeans.org> Date: 2012-09-27 06:38 Message: Issue #219085 - [73cat] IllegalStateException: Attempt to use the fold [code-block] E1 <4251,10271>, desc='{...}', hash=0x214a88, [4252, 10270] {4252, 10270} with invalid fold operation org.netbeans.modules.editor.fold.FoldO: fixed FoldInfo must be copied because of backreference to Fold
Integrated into 'main-golden', will be available in build *201210010929* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/5aaa19c1b291 User: Svata Dedic <sdedic@netbeans.org> Log: Issue #219085 - [73cat] IllegalStateException: Attempt to use the fold [code-block] E1 <4251,10271>, desc='{...}', hash=0x214a88, [4252, 10270] {4252, 10270} with invalid fold operation org.netbeans.modules.editor.fold.FoldO: fixed FoldInfo must be copied because of backreference to Fold
Created attachment 125169 [details] stacktrace Reverting changes from History. It refreshed the diff view after the first reverted change.
Created attachment 125182 [details] stacktrace