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 42218 - java.lang.IndexOutOfBoundsException
Summary: java.lang.IndexOutOfBoundsException
Status: RESOLVED DUPLICATE of bug 33165
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-21 00:20 UTC by frankioski
Modified: 2007-11-05 13:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide.log file (85.29 KB, text/plain)
2004-04-21 00:22 UTC, frankioski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description frankioski 2004-04-21 00:20:43 UTC
Exception occured twice today as I was cutting and
pasting code.
Comment 1 frankioski 2004-04-21 00:22:26 UTC
Created attachment 14490 [details]
ide.log file
Comment 2 frankioski 2004-04-21 00:28:23 UTC
java.lang.IndexOutOfBoundsException: Invalid line index=6417 >=
lineCount=6416
	at
org.netbeans.editor.LineRootElement.getElement(LineRootElement.java:54)
	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:454)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)


java.lang.IndexOutOfBoundsException: Invalid line index=6414 >=
lineCount=6414
	at
org.netbeans.editor.LineRootElement.getElement(LineRootElement.java:54)
	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:454)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Comment 3 Martin Roskanin 2004-04-29 14:38:08 UTC
already fixed

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