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 16771 - ArrayIndexOutOfBoundsException when adding @ in comment
Summary: ArrayIndexOutOfBoundsException when adding @ in comment
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Javadoc (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P4 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-19 15:24 UTC by Anders Eriksson
Modified: 2003-07-01 13:36 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Eriksson 2001-10-19 15:24:54 UTC
I was documenting an interface and for a method I entered in "Javadoc Comment text" the following

"@todo THIS IS NOT IMPLEMENTED."

What (I think) happened then was that NetBeans interpreted my @todo as a tag and listed it under "Tags" and removed it from the "Javadoc Comment text".

Later on when I rewrote some text in the "Javadoc Comment Text" (without a @) I got the stack trace below.

I cut the stuff below from the ide.log.

Hope you can solve it,

/Anders




[IDE-Exec] Executing:
0 .= C:\JDK13~1.1\jre\..\bin\javadoc
1 .= -classpath
2 .=  (snip) 
3 .= -protected
4 .= -J-Xmx96m
5 .= -d
6 .= C:\nb_proj\javadoc
7 .= -sourcepath
8 .= C:\src\mailservices\src;
9 .= C:\src\mailservices\src\dk\wapportal\portal\mail\MailRMIService.java

*********** Exception occurred ************
Fri Oct 19 16:06:20 CEST 2001: java.lang.ArrayIndexOutOfBoundsException: 7 >= 7
java.lang.ArrayIndexOutOfBoundsException: 7 >= 7
	at java.util.Vector.elementAt(Vector.java:417)
	at javax.swing.DefaultListModel.getElementAt(DefaultListModel.java:70)
	at org.netbeans.modules.javadoc.comments.AutoCommentPanel.badListValueChanged(AutoCommentPanel.java:460)
	at org.netbeans.modules.javadoc.comments.AutoCommentPanel.access$800(AutoCommentPanel.java:37)
	at org.netbeans.modules.javadoc.comments.AutoCommentPanel$10.valueChanged(AutoCommentPanel.java:288)
	at javax.swing.JList.fireSelectionValueChanged(JList.java:946)
	at javax.swing.JList$ListSelectionHandler.valueChanged(JList.java:960)
	at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:170)
	at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:150)
	at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:197)
	at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:359)
	at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:368)
	at javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:392)
	at javax.swing.JList.setSelectionInterval(JList.java:1209)
	at javax.swing.plaf.basic.BasicListUI$MouseInputHandler.mousePressed(BasicListUI.java:795)
	at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:221)
	at java.awt.Component.processMouseEvent(Component.java:3712)
	at java.awt.Component.processEvent(Component.java:3544)
	at java.awt.Container.processEvent(Container.java:1164)
	at java.awt.Component.dispatchEventImpl(Component.java:2593)
	at java.awt.Container.dispatchEventImpl(Container.java:1213)
	at java.awt.Component.dispatchEvent(Component.java:2497)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2210)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
	at java.awt.Container.dispatchEventImpl(Container.java:1200)
	at java.awt.Window.dispatchEventImpl(Window.java:914)
	at java.awt.Component.dispatchEvent(Component.java:2497)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
[catch] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
Comment 1 Petr Suchomel 2001-10-19 15:33:16 UTC
Please test this issue in dev if it is possible. There were lot of 
bugs resolved in Javadoc Auto Comment tool in 3.3.
Comment 2 Petr Suchomel 2001-10-19 16:23:36 UTC
Tested, fixed in 3.3
Comment 3 Quality Engineering 2003-07-01 13:33:28 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 4 Quality Engineering 2003-07-01 13:36:06 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.