Buggy code:
public class Table extends Composite { TableItem [ ] items ; TableColumn [ ] columns ; int columnCount ; int customCount ; ImageList imageList ; ImageList headerImageList ; TableItem currentItem ; TableColumn sortColumn ; boolean ignoreCustomDraw ; boolean ignoreDrawForeground ; boolean ignoreDrawBackground ; boolean ignoreDrawFocus ; boolean ignoreDrawSelection ; boolean ignoreDrawHot ; boolean customDraw ; boolean dragStarted ; boolean explorerTheme ; boolean firstColumnImage ; boolean fixScrollWidth ; boolean tipRequested ; boolean wasSelected ; boolean wasResized ; boolean ignoreActivate ; boolean ignoreSelect ; boolean ignoreShrink ; boolean ignoreResize ; boolean ignoreColumnMove ; boolean ignoreColumnResize ; int headerToolTipHandle ; int itemHeight ; int lastIndexOf ; int lastWidth ; int sortDirection ; int resizeCount ; int selectionForeground ; int hotIndex ; static int HeaderProc ; static final int INSET = 4 ; static final int GRID_WIDTH = 1 ; static final int SORT_WIDTH = 10 ; static final int HEADER_MARGIN = 12 ; static final int HEADER_EXTRA = 3 ; static final int VISTA_EXTRA = 2 ; static final int EXPLORER_EXTRA = 2 ; static final int H_SCROLL_LIMIT = 32 ; static final int V_SCROLL_LIMIT = 16 ; static final boolean EXPLORER_THEME = true ; static final int TableProc ; static final TCHAR TableClass = new TCHAR ( 0 , OS . WC_LISTVIEW , true ) ; public Table ( Composite parent , int style ) { } void _addListener ( int eventType , Listener listener ) { } TableItem _getItem ( int index ) { } public void addSelectionListener ( SelectionListener listener ) { } int callWindowProc ( int hwnd , int msg , int wParam , int lParam ) { } int callWindowProc ( int hwnd , int msg , int wParam , int lParam , boolean forceSelect ) { } static int checkStyle ( int style ) { } LRESULT CDDS_ITEMPOSTPAINT ( NMLVCUSTOMDRAW nmcd , int wParam , int lParam ) { } LRESULT CDDS_ITEMPREPAINT ( NMLVCUSTOMDRAW nmcd , int wParam , int lParam ) { } LRESULT CDDS_POSTPAINT ( NMLVCUSTOMDRAW nmcd , int wParam , int lParam ) { } LRESULT CDDS_PREPAINT ( NMLVCUSTOMDRAW nmcd , int wParam , int lParam ) { } LRESULT CDDS_SUBITEMPOSTPAINT ( NMLVCUSTOMDRAW nmcd , int wParam , int lParam ) { } LRESULT CDDS_SUBITEMPREPAINT ( NMLVCUSTOMDRAW nmcd , int wParam , int lParam ) { } void checkBuffered ( ) { } boolean checkData ( TableItem item , boolean redraw ) { } boolean checkData ( TableItem item , int index , boolean redraw ) { } boolean checkHandle ( int hwnd ) { } protected void checkSubclass ( ) { } public void clear ( int index ) { } public void clear ( int start , int end ) { } public void clear ( int [ ] indices ) { } public void clearAll ( ) { } public Point computeSize ( int wHint , int hHint , boolean changed ) { } void createHandle ( ) { super . createHandle ( ) ; state &= ~ ( ( CANVAS ) | ( THEME_BACKGROUND ) ) ; if ( Table . EXPLORER_THEME ) { <START_BUG> if ( ( ! ( OS . IsWinCE ) ) && ( ( OS . WIN32_VERSION ) >= ( OS . VERSION ( 6 , 0 ) ) ) ) { <END_BUG> explorerTheme = true ; OS . SetWindowTheme ( handle , EXPLORER , null ) ; } } if ( ( Table . HeaderProc ) == 0 ) { int hwndHeader = OS . SendMessage ( handle , LVM_GETHEADER , 0 , 0 ) ; Table . HeaderProc = OS . GetWindowLongPtr ( hwndHeader , GWLP_WNDPROC ) ; } if ( ! ( OS . IsWinCE ) ) { if ( ( OS . COMCTL32_MAJOR ) < 6 ) { OS . SendMessage ( handle , CCM_SETVERSION , 5 , 0 ) ; } } if ( ( ( style ) & ( SWT . CHECK ) ) != 0 ) { int empty = OS . SendMessage ( handle , LVM_APPROXIMATEVIEWRECT , 0 , 0 ) ; int oneItem = OS . SendMessage ( handle , LVM_APPROXIMATEVIEWRECT , 1 , 0 ) ; int width = ( OS . HIWORD ( oneItem ) ) - ( OS . HIWORD ( empty ) ) ; int height = width ; setCheckboxImageList ( width , height , false ) ; OS . SendMessage ( handle , LVM_SETCALLBACKMASK , LVIS_STATEIMAGEMASK , 0 ) ; } int hFont = OS . GetStockObject ( SYSTEM_FONT ) ; OS . SendMessage ( handle , WM_SETFONT , hFont , 0 ) ; LVCOLUMN lvColumn = new LVCOLUMN ( ) ; lvColumn . mask = ( OS . LVCF_TEXT ) | ( OS . LVCF_WIDTH ) ; int hHeap = OS . GetProcessHeap ( ) ; int pszText = OS . HeapAlloc ( hHeap , HEAP_ZERO_MEMORY , sizeof ) ; lvColumn . pszText = pszText ; OS . SendMessage ( handle , LVM_INSERTCOLUMN , 0 , lvColumn ) ; OS . HeapFree ( hHeap , 0 , pszText ) ; int bits1 = OS . LVS_EX_LABELTIP ; if ( ( ( style ) & ( SWT . FULL_SELECTION ) ) != 0 ) bits1 |= OS . LVS_EX_FULLROWSELECT ; if ( ( OS . COMCTL32_MAJOR ) >= 6 ) bits1 |= OS . LVS_EX_DOUBLEBUFFER ; OS . SendMessage ( handle , LVM_SETEXTENDEDLISTVIEWSTYLE , bits1 , bits1 ) ; if ( ( OS . WIN32_VERSION ) < ( OS . VERSION ( 4 , 10 ) ) ) return ; if ( ( ( style ) & ( SWT . RIGHT_TO_LEFT ) ) != 0 ) { int hwndHeader = OS . SendMessage ( handle , LVM_GETHEADER , 0 , 0 ) ; int bits2 = OS . GetWindowLong ( hwndHeader , GWL_EXSTYLE ) ; OS . SetWindowLong ( hwndHeader , GWL_EXSTYLE , ( bits2 | ( OS . WS_EX_LAYOUTRTL ) ) ) ; } } void createHeaderToolTips ( ) { }

Fix:
if ( ( ( ! ( OS . IsWinCE ) ) && ( ( OS . WIN32_VERSION ) >= ( OS . VERSION ( 6 , 0 ) ) ) ) && ( OS . IsAppThemed ( ) ) ) {