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.
Inside AutoComment tool, pressing of 'Move Down' button with no item selected results in following AIOOBE: java.lang.ArrayIndexOutOfBoundsException: -1 at java.util.Vector.elementAt(Vector.java:435) at javax.swing.DefaultListModel.get(DefaultListModel.java:428) at org.netbeans.modules.javadoc.comments.JavaDocEditorPanel.moveTagButtonActionPerformed(JavaDocEditorPanel.java:636) at org.netbeans.modules.javadoc.comments.JavaDocEditorPanel.access$700(JavaDocEditorPanel.java:39) ... (whole stack trace attached) Steps to reproduce: -------------------- 1) Open Autocomment tool on a class with a method with more tags 2) Press 'Move Down' --> Exception is thrown [200510111800, JDK 1.5.0_05, solaris 10/sparc]
Created attachment 25851 [details] exception stack trace
fixed in /cvs/javadoc/src/org/netbeans/modules/javadoc/comments/JavaDocEditorPanel.java new revision: 1.58; previous revision: 1.57
Verified in [200510171800, JDK 1.5.0_05,linux x86] No exception is thrown anymore, but shouldn't 'Move Up/Down' be disabled when no tag is selected?