Project: SWT
Bug 242716 Exception in Table with SWT.MEASUREITEM
Reported: 2008-07-31 09:36:52 | Status: resolved fixed

Build ID: 3.4.0.v20080603-2000 Steps To Reproduce: 1. Create a table and add a listener for SWT.MEASUREITEM 2. Add columns 3. In the view place the mouse cursor above the table and column header 4. Press the left or right cursor key 5. A tooltip is requested with an item index below 0, which causes an exception (although p.y is lower than 0, the hit test succeeds for some reason): Thread [main] (Suspended) Table.wmNotifyToolTip(NMHDR, int, int) line: 6734 Table.wmNotify(NMHDR, int, int) line: 6216 Table(Control).WM_NOTIFY(int, int) line: 4348 Table(Control).windowProc(int, int, int, int) line: 3841 Table.windowProc(int, int, int, int) line: 5476 Display.windowProc(int, int, int, int) line: 4528 OS.CallWindowProcW(int, int, int, int, int) line: not available [native method] OS.CallWindowProc(int, int, int, int, int) line: 2273 Table.callWindowProc(int, int, int, int, boolean) line: 333 Table.callWindowProc(int, int, int, int) line: 199 Table(Control).windowProc(int, int, int, int) line: 3877 Table.windowProc(int, int, int, int) line: 5476 Display.windowProc(int, int, int, int) line: 4541 OS.DispatchMessageW(MSG) line: not available [native method] OS.DispatchMessage(MSG) line: 2370 Display.readAndDispatch() line: 3420 Workbench.runEventLoop(Window$IExceptionHandler, Display) line: 2382 Workbench.runUI() line: 2346 Workbench.access$4(Workbench) line: 2198 Workbench$5.run() line: 493 Realm.runWithDefault(Realm, Runnable) line: 288 Workbench.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 488 PlatformUI.createAndRunWorkbench(Display, WorkbenchAdvisor) line: 149 UnifiedSWTSwingApplication(CopyOfIDEApplication).start(IApplicationContext) line: 111 UnifiedSWTSwingApplication.access$4(UnifiedSWTSwingApplication, IApplicationContext) line: 1 UnifiedSWTSwingApplication.start(IApplicationContext) line: 56 EclipseAppHandle.run(Object) line: 193 EclipseAppLauncher.runApplication(Object) line: 110 EclipseAppLauncher.start(Object) line: 79 EclipseStarter.run(Object) line: 382 EclipseStarter.run(String[], Runnable) line: 179 NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method] NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39 DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25 Method.invoke(Object, Object...) line: 585 Main.invokeFramework(String[], URL[]) line: 549 Main.basicRun(String[]) line: 504 Main.run(String[]) line: 1236 Main.main(String[]) line: 1212 More information:

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