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 32810

Summary: ArrayIndexOutOfBoundsException in editor
Product: editor Reporter: TomBarbaro <tombarbaro>
Component: -- Other --Assignee: issues@editor <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:
Attachments: output of "find /opt/netbeans_ide_3.5/ -ls"

Description TomBarbaro 2003-04-10 22:43:46 UTC
At random times while editing I get an 
ArrayIndexOutOfBoundsException exception. It does not seem 
to harm anything.  Here is the stacktrace.

java.lang.ArrayIndexOutOfBoundsException: 471
	at org.netbeans.editor.GapObjectArray.getItem
(GapObjectArray.java:71)
	at org.netbeans.editor.GapBranchElement.getElement
(GapBranchElement.java:45)
	at org.openide.text.NbDocument.findLineOffset
(NbDocument.java:124)
	at org.openide.text.DocumentLine$Set.getCurrent
(DocumentLine.java:754)
	at 
org.netbeans.modules.java.ParserAnnotation.attachToLineSet
(ParserAnnotation.java:133)
	at 
org.netbeans.modules.java.JavaEditor.processAnnotations
(JavaEditor.java:449)
	at org.netbeans.modules.java.JavaEditor.access$300
(JavaEditor.java:77)
[catch] at org.netbeans.modules.java.JavaEditor$2.run
(JavaEditor.java:297)
	at java.awt.event.InvocationEvent.dispatch
(InvocationEvent.java:178)
	at java.awt.EventQueue.dispatchEvent
(EventQueue.java:448)
	at 
java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:197)
	at 
java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:150)
	at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:144)
	at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:136)
	at java.awt.EventDispatchThread.run
(EventDispatchThread.java:99)
Comment 1 Martin Roskanin 2003-04-11 08:08:26 UTC
The similar exception is mentioned also in the issue #31354
Comment 2 ehucka 2003-04-11 08:59:29 UTC
*** Issue 32808 has been marked as a duplicate of this issue. ***
Comment 3 _ proxity 2003-06-10 17:19:10 UTC
Created attachment 10641 [details]
output of "find  /opt/netbeans_ide_3.5/ -ls"
Comment 4 Martin Roskanin 2003-06-16 09:26:35 UTC

*** This issue has been marked as a duplicate of 33040 ***