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.

Bug 150276

Summary: ArrayIndexOutOfBoundsException: 1475
Product: editor Reporter: smsmithee <smsmithee>
Component: -- Other --Assignee: issues@editor <issues>
Status: RESOLVED WONTFIX    
Severity: blocker Keywords: RANDOM
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=40688
Issue Type: DEFECT Exception Reporter: 40688
Attachments: stacktrace

Description smsmithee 2008-10-15 19:04:44 UTC
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)
Comment 1 smsmithee 2008-10-15 19:04:54 UTC
Created attachment 71892 [details]
stacktrace
Comment 2 Vitezslav Stejskal 2008-10-16 12:19:37 UTC
No idea what's wrong.
Comment 3 Miloslav Metelka 2008-10-20 12:44:32 UTC
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.
Comment 4 Miloslav Metelka 2008-11-18 17:00:20 UTC
Will resolve later.
Comment 5 Quality Engineering 2009-11-02 11:02:30 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX