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 42139 - Index out of bounds when trying to fix a suggestion
Summary: Index out of bounds when trying to fix a suggestion
Status: RESOLVED DUPLICATE of bug 41883
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: tasklist-issues@contrib
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-19 15:45 UTC by hlein
Modified: 2004-04-21 17:20 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 hlein 2004-04-19 15:45:26 UTC
When I try to let tasklist fix a suggestion (e.g.
remove an unnecessary import statement) it leads
to an error although the fixing is done.

java.lang.IndexOutOfBoundsException: Index: 344,
Size: 344
	at java.util.ArrayList.RangeCheck(ArrayList.java:547)
	at java.util.ArrayList.get(ArrayList.java:322)
	at
org.netbeans.modules.tasklist.core.TaskList.fireRemoved(TaskList.java:275)
	at
org.netbeans.modules.tasklist.core.Task.fireRemovedTask(Task.java:213)
	at
org.netbeans.modules.tasklist.core.Task.removeSubtask(Task.java:424)
	at
org.netbeans.modules.tasklist.core.TaskList.addRemove(TaskList.java:121)
	at
org.netbeans.modules.tasklist.suggestions.DefaultSuggestionManager.register(DefaultSuggestionManager.java:274)
	at
org.netbeans.modules.tasklist.suggestions.FixAction.performAction(FixAction.java:317)
	at
org.openide.util.actions.NodeAction$1.run(NodeAction.java:174)
	at
org.openide.util.actions.CallableSystemAction.doPerformAction(CallableSystemAction.java:116)
	at
org.openide.util.actions.NodeAction.actionPerformed(NodeAction.java:172)
	at
org.openide.explorer.view.TreeView$PopupSupport.mouseClicked(TreeView.java:1116)
	at
java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:212)
	at
java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:211)
	at
java.awt.Component.processMouseEvent(Component.java:5466)
	at
javax.swing.JComponent.processMouseEvent(JComponent.java:3052)
	at
java.awt.Component.processEvent(Component.java:5228)
	at
java.awt.Container.processEvent(Container.java:1961)
	at
java.awt.Component.dispatchEventImpl(Component.java:3931)
	at
java.awt.Container.dispatchEventImpl(Container.java:2019)
	at
java.awt.Component.dispatchEvent(Component.java:3779)
	at
org.openide.explorer.view.TreeTable$TreeTableCellEditor.isCellEditable(TreeTable.java:908)
	at javax.swing.JTable.editCellAt(JTable.java:2634)
	at
org.openide.explorer.view.TreeTable.editCellAt(TreeTable.java:451)
	at
org.openide.explorer.view.TreeTable$TreeTableUI$TreeTableMouseInputHandler.processMouseEvent(TreeTable.java:1322)
	at
org.openide.explorer.view.TreeTable$TreeTableUI$TreeTableMouseInputHandler.mouseClicked(TreeTable.java:1235)
	at
java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:212)
	at
java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:211)
	at
java.awt.Component.processMouseEvent(Component.java:5466)
	at
javax.swing.JComponent.processMouseEvent(JComponent.java:3052)
	at
java.awt.Component.processEvent(Component.java:5228)
	at
java.awt.Container.processEvent(Container.java:1961)
	at
java.awt.Component.dispatchEventImpl(Component.java:3931)
	at
java.awt.Container.dispatchEventImpl(Container.java:2019)
	at
java.awt.Component.dispatchEvent(Component.java:3779)
	at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4203)
	at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
	at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3813)
	at
java.awt.Container.dispatchEventImpl(Container.java:2005)
	at
java.awt.Window.dispatchEventImpl(Window.java:1757)
	at
java.awt.Component.dispatchEvent(Component.java:3779)
[catch] at
java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at
java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 _ pkuzel 2004-04-21 09:58:53 UTC
Do you have latest version from Beta AUC?

Anyway issue #41883 duplicate (resolved one).

*** This issue has been marked as a duplicate of 41883 ***
Comment 2 hlein 2004-04-21 17:20:26 UTC
I have downloaded it a few days before filing the issue.
Versions:
Bug List:   0.11.1.261/1, build animuk20040316
HTML Suggestion Provider:   1.6.1.261/1, build animuk200403016
Source Copyright Checker:   1.2.261/1
Suggestions:   1.19.2652/2, build dev
To Do Tasks Scanning:   1.13.1.2653/3, build 200404071636
User Tasks:   1.14.268/8, build dev