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 34523 - ArrayIndexOutOfBoundsException when working with autocomment tool
Summary: ArrayIndexOutOfBoundsException when working with autocomment tool
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Javadoc (show other bugs)
Version: 3.x
Hardware: PC All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-21 12:37 UTC by sva
Modified: 2005-12-19 15:47 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 sva 2003-06-21 12:37:12 UTC
Step to reproduce:
1. Open java file in editor.
2. Press Tools->Auto Comment... popup menu item.
3. Select some function and "New.." button to create tag. 
Select @since tag and press ok.
4. Put cursor to description box and press "Delete" button 
to delete tag.
5. Note that after deletion of tag buttons with html tags 
is still active. Press "<B>" button

REsult: Exception occured:

java.lang.ArrayIndexOutOfBoundsException: -1
	at java.util.Vector.elementAt(Vector.java:434)
	at javax.swing.DefaultListModel.get
(DefaultListModel.java:428)
	at 
org.netbeans.modules.javadoc.comments.JavaDocEditorPanel.fo
rmatButtonActionPerformed(JavaDocEditorPanel.java:651)
	at 
org.netbeans.modules.javadoc.comments.JavaDocEditorPanel.ac
cess$800(JavaDocEditorPanel.java:44)
	at 
org.netbeans.modules.javadoc.comments.JavaDocEditorPanel$13
.actionPerformed(JavaDocEditorPanel.java:484)
	at javax.swing.AbstractButton.fireActionPerformed
(AbstractButton.java:1786)
	at 
javax.swing.AbstractButton$ForwardActionEvents.actionPerfor
med(AbstractButton.java:1839)
	at 
javax.swing.DefaultButtonModel.fireActionPerformed
(DefaultButtonModel.java:420)
	at javax.swing.DefaultButtonModel.setPressed
(DefaultButtonModel.java:258)
	at 
javax.swing.plaf.basic.BasicButtonListener.mouseReleased
(BasicButtonListener.java:245)
	at java.awt.AWTEventMulticaster.mouseReleased
(AWTEventMulticaster.java:231)
	at java.awt.Component.processMouseEvent
(Component.java:5099)
	at java.awt.Component.processEvent
(Component.java:4896)
	at java.awt.Container.processEvent
(Container.java:1569)
	at java.awt.Component.dispatchEventImpl
(Component.java:3614)
	at java.awt.Container.dispatchEventImpl
(Container.java:1627)
	at java.awt.Component.dispatchEvent
(Component.java:3476)
	at 
java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:3483)
	at java.awt.LightweightDispatcher.processMouseEvent
(Container.java:3198)
	at java.awt.LightweightDispatcher.dispatchEvent
(Container.java:3128)
	at java.awt.Container.dispatchEventImpl
(Container.java:1613)
	at java.awt.Window.dispatchEventImpl
(Window.java:1606)
	at java.awt.Component.dispatchEvent
(Component.java:3476)
[catch] at java.awt.EventQueue.dispatchEvent
(EventQueue.java:456)
	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)

Reproduced with dev build.
Comment 1 Martin Roskanin 2003-06-23 08:29:30 UTC
Reassigning to javadoc module
Comment 2 Vitezslav Stejskal 2003-08-22 14:08:37 UTC
Reproducible. The function from #3 must not have any javadoc comment
tags, so that the newly created tag is the only one.
Comment 3 _ pkuzel 2003-09-05 11:05:07 UTC
I'm taking responsibility for JavaDoc module.
Comment 4 Marek Grummich 2003-12-05 14:37:37 UTC
I am able to reproduce this issue in the build 200312011900 (Linux)
Comment 5 _ pkuzel 2004-03-24 10:47:38 UTC
[batch] Giving up javadoc issues exclusive ownership.
Comment 6 psuk 2004-11-01 10:02:39 UTC
Fixed already in 4.0 a while ago. Btns w/ tags are disabled, if there
is nothing selected in Tags listbox.
Comment 7 Max Sauer 2005-12-19 15:47:23 UTC
verified. no such issue inside nbdev 200512181900.