Project: JDT
Bug 15571 IndexOutOfBoundsException in Override Methods action
Reported: 2002-05-08 14:49:27 | Status: resolved fixed

Got the following when using "Override Methods" action: <?xml version="1.0" encoding="UTF-8"?> <log> <log-entry date="Wed May 08 13:49:56 CDT 2002"> <status code="4" severity="INFO" message="Unhandled exception caught in event loop." plugin-id="org.eclipse.core.resources"> </status> </log-entry> <log-entry date="Wed May 08 13:49:56 CDT 2002"> <status code="0" severity="ERROR" message="Index: 6, Size: 6" plugin-id="org.eclipse.ui"> <exception message="Index: 6, Size: 6" trace=" java.lang.IndexOutOfBoundsException: Index: 6, Size: 6 at java.util.ArrayList.RangeCheck(ArrayList.java:508) at java.util.ArrayList.get(ArrayList.java:320) at org.eclipse.jdt.internal.corext.codemanipulation.ImportsStructure.addPreferenceO rderHolders(ImportsStructure.java:123) at org.eclipse.jdt.internal.corext.codemanipulation.ImportsStructure.&lt;init&gt; (ImportsStructure.java:98) at org.eclipse.jdt.internal.corext.codemanipulation.AddUnimplementedMethodsOperatio n.run(AddUnimplementedMethodsOperation.java:57) at org.eclipse.core.internal.resources.Workspace.run (Workspace.java:1343) at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run (WorkbenchRunnableAdapter.java:32) at org.eclipse.jdt.internal.ui.util.BusyIndicatorRunnableContext$BusyRunnable.inter nalRun(BusyIndicatorRunnableContext.java:107) at org.eclipse.jdt.internal.ui.util.BusyIndicatorRunnableContext$BusyRunnable.run (BusyIndicatorRunnableContext.java:74) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:56) at org.eclipse.jdt.internal.ui.util.BusyIndicatorRunnableContext.run (BusyIndicatorRunnableContext.java:120) at org.eclipse.jdt.internal.ui.actions.AddUnimplementedMethodsAction.run (AddUnimplementedMethodsAction.java:76) 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:75) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1412) 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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) 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) "> </exception> </status> </log-entry>

Files changed in fix:
org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/ImportsStructure.java