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 200810080201) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc2-b32 OS: Windows XP, 5.1, x86 User Comments: smsmithee: hit ctrl-z to undo a wsdl edit adam_myatt: editing a CSS file in the CSS editor aldobrucale: undo (ctrl-Z) in a java source file dynamite: I was quickly doing a number of ctrl-Z undo operations in a modified Java file. psuchomel: Editor broken after Ctrl-Z, can not return code to original GUEST: editing ruby sourcecode :) smsmithee: hit ctrl-z to undo a wsdl edit Stacktrace: java.lang.ArrayIndexOutOfBoundsException: 1475 at org.netbeans.editor.MarkVector.update(MarkVector.java:336) at org.netbeans.editor.DocumentContent$Edit.undoOrRedo(DocumentContent.java:454) at org.netbeans.editor.DocumentContent$Edit.undo(DocumentContent.java:427) at org.netbeans.editor.BaseDocumentEvent.undo(BaseDocumentEvent.java:303) at org.netbeans.editor.GuardedDocumentEvent.undo(GuardedDocumentEvent.java:69) at javax.swing.undo.CompoundEdit.undo(CompoundEdit.java:0)
Created attachment 71892 [details] stacktrace
No idea what's wrong.
Not sure what's wrong too, the code in MarkVector and related stuff wasn't changed for ages. Since the MarkVector is synchronized it's unlikely that there would be any race condition. Anyway the code in MV is somewhat complex due to special handling of backward bias marks in the vector. They could be handled in a different way (wrapping a regular position) which would simplify the code.
Will resolve later.
NetBeans.org Migration: changing resolution from LATER to WONTFIX