Project: SWT
Bug 157404 ArrayIndexOutOfBoundsException during opening code assist proposals
Reported: 2006-09-14 19:53:45 | Status: resolved fixed

Using latest integration build (20060912-0800), I got this in a code assist operation: java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method) at java.lang.String.getChars(String.java:726) at org.eclipse.swt.widgets.Table.wmNotifyChild(Table.java:5532) at org.eclipse.swt.widgets.Control.wmNotify(Control.java:4143) at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1482) at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:3796) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3304) at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1539) at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1659) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4072) at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method) at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:1883) at org.eclipse.swt.widgets.Table.callWindowProc(Table.java:255) at org.eclipse.swt.widgets.Table.callWindowProc(Table.java:183) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3340) at org.eclipse.swt.widgets.Table.windowProc(Table.java:4680) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4072) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1964) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3007) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:348) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:165) 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:585) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:341) at org.eclipse.core.launcher.Main.basicRun(Main.java:285) at org.eclipse.core.launcher.Main.run(Main.java:987) at org.eclipse.core.launcher.Main.main(Main.java:962) Steps to reproduce: 1) Check out org.eclipse.jdt.core.tests.model project from CVS (you might need other jdt core tests project in order to compile). 2) Go to org.eclipse.jdt.core.tests.model.DeleteTests 3) Go to line 43 (contains createJavaProject("P"); ) 4) On this line, code assist at the location with "|" createJavaProject(|<-- CODE ASSIST HERE "P"); 5) Once the proposals are opened, slightly move the mouse. 6) I got the .log file full of the stack trace above.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java