Buggy code:
public void setHeaderVisible ( boolean show ) { } public void setItemCount ( int count ) { } void setItemHeight ( boolean fixScroll ) { } void setItemHeight ( int itemHeight ) { } public void setLinesVisible ( boolean show ) { } public void setRedraw ( boolean redraw ) { } boolean setScrollWidth ( TableItem item , boolean force ) { } public void setSelection ( int [ ] indices ) { } public void setSelection ( TableItem item ) { } 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 ( ) { } RECT toolTipInset ( RECT rect ) { } RECT toolTipRect ( RECT rect ) { } 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 ) { if ( ! ( ignoreShrink ) ) { int count = ( ( int ) ( OS . SendMessage ( handle , LVM_GETITEMCOUNT , 0 , 0 ) ) ) ; if ( ( ( items . length ) > 4 ) && ( ( ( items . length ) - count ) > 3 ) ) { int length = Math . max ( 4 , ( ( ( count + 3 ) // 4 ) * 4 ) ) ; TableItem [ ] newItems = new TableItem [ length ] ; System . arraycopy ( items , 0 , newItems , 0 , count ) ; items = newItems ; } } if ( fixScrollWidth ) setScrollWidth ( null , true ) ; if ( ( ! ( OS . IsWinCE ) ) && ( ( OS . COMCTL32_MAJOR ) < 6 ) ) { if ( ( ( ( style ) & ( SWT . DOUBLE_BUFFERED ) ) != 0 ) || ( ( findImageControl ( ) ) != null ) ) { int bits = ( ( int ) ( OS . SendMessage ( handle , LVM_GETEXTENDEDLISTVIEWSTYLE , 0 , 0 ) ) ) ; if ( ( bits & ( OS . LVS_EX_DOUBLEBUFFER ) ) == 0 ) { GC gc = null ; int paintDC = 0 ; PAINTSTRUCT ps = new PAINTSTRUCT ( ) ; <START_BUG> boolean hooksPaint = hooks ( Paint ) ; <END_BUG> if ( hooksPaint ) { GCData data = new GCData ( ) ; data . ps = ps ; data . hwnd = handle ; gc = GC . win32_new ( this , data ) ; paintDC = gc . handle ; } else { paintDC = OS . BeginPaint ( handle , ps ) ; } int width = ( ps . right ) - ( ps . left ) ; int height = ( ps . bottom ) - ( ps . top ) ; if ( ( width != 0 ) && ( height != 0 ) ) { int hDC = OS . CreateCompatibleDC ( paintDC ) ; POINT lpPoint1 = new POINT ( ) ; POINT lpPoint2 = new POINT ( ) ; OS . SetWindowOrgEx ( hDC , ps . left , ps . top , lpPoint1 ) ; OS . SetBrushOrgEx ( hDC , ps . left , ps . top , lpPoint2 ) ; int hBitmap = OS . CreateCompatibleBitmap ( paintDC , width , height ) ; int hOldBitmap = OS . SelectObject ( hDC , hBitmap ) ; if ( ( ( int ) ( OS . SendMessage ( handle , LVM_GETBKCOLOR , 0 , 0 ) ) ) != ( OS . CLR_NONE ) ) { RECT rect = new RECT ( ) ; OS . SetRect ( rect , ps . left , ps . top , ps . right , ps . bottom ) ; drawBackground ( hDC , rect ) ; } callWindowProc ( handle , WM_PAINT , hDC , 0 ) ; OS . SetWindowOrgEx ( hDC , lpPoint1 . x , lpPoint1 . y , null ) ; OS . SetBrushOrgEx ( hDC , lpPoint2 . x , lpPoint2 . y , null ) ; OS . BitBlt ( paintDC , ps . left , ps . top , width , height , hDC , 0 , 0 , SRCCOPY ) ; OS . SelectObject ( hDC , hOldBitmap ) ; OS . DeleteObject ( hBitmap ) ; OS . DeleteObject ( hDC ) ;

Fix:
boolean hooksPaint = ( hooks ( Paint ) ) || ( filters ( Paint ) ) ;