Bug 14171

Summary: Array out of bounds exception (References/Working Set Dialog)
Product: [Eclipse Project] JDT Reporter: omuzaff
Component: UIAssignee: Dani Megert <daniel_megert>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P1    
Version: 2.0   
Target Milestone: 2.0 M6   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description omuzaff CLA 2002-04-18 17:13:08 EDT
1. Create Java Project
2. Create Java Class file
3. Right click -> References -> Working Set
4. New -> Enter working set name
5. Select the java project -> OK
6. Click Remove -> OK

Stack Trace follows:
--------------------
java.lang.ArrayIndexOutOfBoundsException: 0
       at 
org.eclipse.jdt.internal.ui.search.FindReferencesInWorkingSetAction.queryWorking
Set(FindReferencesInWorkingSetAction.java:65)
       at 
org.eclipse.jdt.internal.ui.search.FindReferencesInWorkingSetAction.makeOperatio
n(FindReferencesInWorkingSetAction.java:44)
       at org.eclipse.jdt.internal.ui.search.ElementSearchAction.run
(ElementSearchAction.java:57)
       at org.eclipse.jdt.internal.ui.search.JavaElementAction.run
(JavaElementAction.java:86)
       at org.eclipse.jface.action.Action.runWithEvent(Action.java:590)
       at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:407)
       at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent
(ActionContributionItem.java:361)
       at org.eclipse.jface.action.ActionContributionItem.access$0
(ActionContributionItem.java:352)
       at 
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent
(ActionContributionItem.java:47)
       at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java(Compiled 
Code))
       at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled 
Code))
       at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java
(Compiled Code))
       at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208)
       at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:836)
       at org.eclipse.ui.internal.Workbench.run(Workbench.java:819)
       at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:777)
       at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319)
       at java.lang.reflect.Method.invoke(Native Method)
       at org.eclipse.core.launcher.Main.basicRun(Main.java:190)
       at org.eclipse.core.launcher.Main.run(Main.java:549)
       at org.eclipse.core.launcher.Main.main(Main.java:390)
Comment 1 Nick Edgar CLA 2002-04-18 22:03:36 EDT
Please indicate which build you're running.
Comment 2 omuzaff CLA 2002-04-19 09:24:27 EDT
Build Version: 20020412
Comment 3 Dani Megert CLA 2002-04-19 10:35:33 EDT
Changed the target milestone to M6

FYI: This property should not be set by the problem reporter. It indicates when
the feature or fix will be available and is used for planning. Since M5 is
already out I have no chance to provide a fix for M5 ;-)
Comment 4 Dani Megert CLA 2002-04-19 11:57:56 EDT
Search now supports more than one working set. I have verified that this PR is
fixed in the new code.

Available in builds > 20020418