Buggy code:
public void setSelection ( TableItem [ ] items ) { } public void setSelection ( int index ) { } public void setSelection ( int start , int end ) { } public void setSortColumn ( TableColumn column ) { } public void setSortDirection ( int direction ) { } void setSubImagesVisible ( boolean visible ) { } void setTableEmpty ( ) { } public void setTopIndex ( int index ) { } public void showColumn ( TableColumn column ) { } void showItem ( int index ) { } public void showItem ( TableItem item ) { } public void showSelection ( ) { } void sort ( ) { } void subclass ( ) { } String toolTipText ( NMTTDISPINFO hdr ) { } void unsubclass ( ) { } void update ( boolean all ) { } void updateHeaderToolTips ( ) { } void updateImages ( ) { } void updateMoveable ( ) { } int widgetStyle ( ) { } TCHAR windowClass ( ) { } int windowProc ( ) { } int windowProc ( int hwnd , int msg , int wParam , int lParam ) { } LRESULT WM_CHAR ( int wParam , int lParam ) { } LRESULT WM_CONTEXTMENU ( int wParam , int lParam ) { } LRESULT WM_ERASEBKGND ( int wParam , int lParam ) { } LRESULT WM_GETOBJECT ( int wParam , int lParam ) { } LRESULT WM_KEYDOWN ( int wParam , int lParam ) { } LRESULT WM_KILLFOCUS ( int wParam , int lParam ) { } LRESULT WM_LBUTTONDBLCLK ( int wParam , int lParam ) { } LRESULT WM_LBUTTONDOWN ( int wParam , int lParam ) { } LRESULT WM_MOUSEHOVER ( int wParam , int lParam ) { } LRESULT WM_PAINT ( int wParam , int lParam ) { } LRESULT WM_RBUTTONDBLCLK ( int wParam , int lParam ) { } LRESULT WM_RBUTTONDOWN ( int wParam , int lParam ) { } LRESULT WM_SETFOCUS ( int wParam , int lParam ) { } LRESULT WM_SETFONT ( int wParam , int lParam ) { } LRESULT WM_SIZE ( int wParam , int lParam ) { } LRESULT WM_SYSCOLORCHANGE ( int wParam , int lParam ) { } LRESULT WM_HSCROLL ( int wParam , int lParam ) { } LRESULT WM_VSCROLL ( int wParam , int lParam ) { } LRESULT wmMeasureChild ( int wParam , int lParam ) { } LRESULT wmNotify ( NMHDR hdr , int wParam , int lParam ) { } LRESULT wmNotifyChild ( NMHDR hdr , int wParam , int lParam ) { } LRESULT wmNotifyHeader ( NMHDR hdr , int wParam , int lParam ) { } LRESULT wmNotifyToolTip ( NMHDR hdr , int wParam , int lParam ) { if ( OS . IsWinCE ) return null ; switch ( hdr . code ) { case OS . NM_CUSTOMDRAW : { NMTTCUSTOMDRAW nmcd = new NMTTCUSTOMDRAW ( ) ; OS . MoveMemory ( nmcd , lParam , sizeof ) ; return wmNotifyToolTip ( nmcd , lParam ) ; } case OS . TTN_GETDISPINFOA : case OS . TTN_GETDISPINFOW : case OS . TTN_SHOW : { if ( ( hdr . code ) != ( OS . TTN_SHOW ) ) tipRequested = true ; int code = callWindowProc ( handle , WM_NOTIFY , wParam , lParam ) ; if ( ( hdr . code ) != ( OS . TTN_SHOW ) ) tipRequested = false ; <START_BUG> if ( hooks ( MeasureItem ) ) { <END_BUG> LVHITTESTINFO pinfo = new LVHITTESTINFO ( ) ; int pos = OS . GetMessagePos ( ) ; POINT pt = new POINT ( ) ; OS . POINTSTOPOINT ( pt , pos ) ; OS . ScreenToClient ( handle , pt ) ; pinfo . x = pt . x ; pinfo . y = pt . y ; if ( ( OS . SendMessage ( handle , LVM_SUBITEMHITTEST , 0 , pinfo ) ) != ( - 1 ) ) { TableItem item = _getItem ( pinfo . iItem ) ; int hDC = OS . GetDC ( handle ) ; int oldFont = 0 ; int newFont = OS . SendMessage ( handle , WM_GETFONT , 0 , 0 ) ; if ( newFont != 0 ) oldFont = OS . SelectObject ( hDC , newFont ) ; int hFont = item . fontHandle ( pinfo . iSubItem ) ; if ( hFont != ( - 1 ) ) hFont = OS . SelectObject ( hDC , hFont ) ; Event event = sendMeasureItemEvent ( item , pinfo . iItem , pinfo . iSubItem , hDC ) ; if ( ( ! ( isDisposed ( ) ) ) && ( ! ( item . isDisposed ( ) ) ) ) { RECT itemRect = new RECT ( ) ; OS . SetRect ( itemRect , event . x , event . y , ( ( event . x ) + ( event . width ) ) , ( ( event . y ) + ( event . height ) ) ) ; if ( ( hdr . code ) == ( OS . TTN_SHOW ) ) { int hwndToolTip = OS . SendMessage ( handle , LVM_GETTOOLTIPS , 0 , 0 ) ; OS . MapWindowPoints ( handle , 0 , itemRect , 2 ) ; OS . SendMessage ( hwndToolTip , TTM_ADJUSTRECT , 1 , itemRect ) ; int flags = ( OS . SWP_NOACTIVATE ) | ( OS . SWP_NOZORDER ) ; int width = ( itemRect . right ) - ( itemRect . left ) ; int height = ( itemRect . bottom ) - ( itemRect . top ) ; SetWindowPos ( hwndToolTip , 0 , itemRect . left , itemRect . top , width , height , flags ) ; } else { NMTTDISPINFO lpnmtdi = null ; if ( ( hdr . code ) == ( OS . TTN_GETDISPINFOA ) ) { lpnmtdi = new NMTTDISPINFOA ( ) ;

Fix:
if ( ( ( hooks ( MeasureItem ) ) || ( hooks ( EraseItem ) ) ) || ( hooks ( PaintItem ) ) ) {