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 13797 - Auto Comment Tool exception
Summary: Auto Comment Tool exception
Status: CLOSED DUPLICATE of bug 13131
Alias: None
Product: java
Classification: Unclassified
Component: Javadoc (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-07-23 09:31 UTC by David Konecny
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 David Konecny 2001-07-23 09:31:09 UTC
Netbeans 3.2 build 39
I have class without javadoc. I started AutoComment. I turned on only:
* Display classes and members without without any JavaDoc
* public
I scrolled to the last method in the list and clicked "Auto-Correct". The following exception appears. From now any click in list of methods without javadoc 
comment causes this exception. Please consider increasing priority to P2. Workaround is to close the dialog and open it again and "Auto-Correct" all 
methods from the beginning.

Mon Jul 23 10:20:55 CEST 2001: java.lang.ArrayIndexOutOfBoundsException: 44 >= 44
java.lang.ArrayIndexOutOfBoundsException: 44 >= 44
        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:437)
        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)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
        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-07-23 10:05:40 UTC
This bug and some other issues are fixed in main trunk. If it is 
nessesary, it possible to merge it.
Comment 2 Petr Suchomel 2001-07-24 16:19:12 UTC
Mark as duplicate to #13131

*** This issue has been marked as a duplicate of 13131 ***
Comment 3 Quality Engineering 2003-07-01 13:33:25 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 4 Quality Engineering 2003-07-01 13:36:03 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.