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.
This bug was originally marked as duplicate of bug 162226, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE 7.3 Beta (Build 201209232010) VM: Java HotSpot(TM) 64-Bit Server VM, 20.10-b01, Java(TM) SE Runtime Environment, 1.6.0_35-b10 OS: Windows NT (unknown) User Comments: sunbiz: Undo on the JavaScript editor after using surround with for... on a line of code Stacktrace: java.lang.IllegalArgumentException: affectedStartOffset=-536805020 < 0 at org.netbeans.modules.editor.fold.FoldHierarchyExecution.createAndFireFoldHierarchyEvent(FoldHierarchyExecution.java:550) at org.netbeans.modules.editor.fold.FoldHierarchyTransactionImpl.commit(FoldHierarchyTransactionImpl.java:259) at org.netbeans.spi.editor.fold.FoldHierarchyTransaction.commit(FoldHierarchyTransaction.java:91) at org.netbeans.modules.csl.editor.fold.GsfFoldManager$CommitFolds.run(GsfFoldManager.java:682) at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1353) at org.netbeans.modules.csl.editor.fold.GsfFoldManager$CommitFolds.run(GsfFoldManager.java:610)
Created attachment 124909 [details] stacktrace
Sorry, I could not reproduce it by invoking surround with (more variants) on a random JS code. Please try to provide a code fragment, which causes this defect; thanks.