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 - ArrayIndexOutOfBoundsException: 1475
Summary: ArrayIndexOutOfBoundsException: 1475
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@editor
URL: http://statistics.netbeans.org/except...
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2008-10-15 19:04 UTC by smsmithee
Modified: 2009-11-02 11:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 40688


Attachments
stacktrace (4.04 KB, text/plain)
2008-10-15 19:04 UTC, smsmithee
Details

Note You need to log in before you can comment on or make changes to this bug.
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