Buggy code:
GdkColor getBackgroundColor ( ) { } public Rectangle getClientArea ( ) { } public TreeColumn getColumn ( int index ) { } public int getColumnCount ( ) { } public int [ ] getColumnOrder ( ) { } int [ ] getColumnTypes ( int columnCount ) { } public TreeColumn [ ] getColumns ( ) { } TreeItem getFocusItem ( ) { } GdkColor getForegroundColor ( ) { } public int getGridLineWidth ( ) { } public int getHeaderHeight ( ) { } public boolean getHeaderVisible ( ) { } public TreeItem getItem ( int index ) { } public TreeItem getItem ( Point point ) { } public int getItemCount ( ) { } public int getItemHeight ( ) { } public TreeItem [ ] getItems ( ) { } TreeItem [ ] getItems ( int parent ) { } public boolean getLinesVisible ( ) { } public TreeItem getParentItem ( ) { } int getPixbufRenderer ( int column ) { } public TreeItem [ ] getSelection ( ) { } public int getSelectionCount ( ) { } public TreeColumn getSortColumn ( ) { } public int getSortDirection ( ) { } int getTextRenderer ( int column ) { } public TreeItem getTopItem ( ) { } int gtk_button_press_event ( int widget , int event ) { } int gtk_button_release_event ( int widget , int event ) { } int gtk_changed ( int widget ) { } int gtk_expand_collapse_cursor_row ( int widget , int logical , int expand , int open_all ) { } int gtk_key_press_event ( int widget , int eventPtr ) { } int gtk_motion_notify_event ( int widget , int event ) { } int gtk_row_activated ( int tree , int path , int column ) { } int gtk_test_collapse_row ( int tree , int iter , int path ) { } int gtk_test_expand_row ( int tree , int iter , int path ) { } int gtk_toggled ( int renderer , int pathStr ) { } void hideFirstColumn ( ) { } void hookEvents ( ) { } public int indexOf ( TreeColumn column ) { } public int indexOf ( TreeItem item ) { } boolean mnemonicHit ( char key ) { } boolean mnemonicMatch ( char key ) { } int paintWindow ( ) { } void recreateRenderers ( ) { } void redrawBackgroundImage ( ) { } void register ( ) { } void releaseItem ( TreeItem item , boolean release ) { } void releaseItems ( int parentIter ) { } void releaseChildren ( boolean destroy ) { } void releaseWidget ( ) { } void remove ( int parentIter , int start , int end ) { } public void removeAll ( ) { checkWidget ( ) ; for ( int i = 0 ; i < ( items . length ) ; i ++ ) { TreeItem item = items [ i ] ; if ( ( item != null ) && ( ! ( item . isDisposed ( ) ) ) ) item . release ( false ) ; } items = new TreeItem [ 4 ] ; int selection = OS . gtk_tree_view_get_selection ( handle ) ; OS . g_signal_handlers_block_matched ( selection , G_SIGNAL_MATCH_DATA , 0 , 0 , 0 , 0 , CHANGED ) ; int oldModel = modelHandle ; int [ ] types = getColumnTypes ( Math . max ( 1 , columnCount ) ) ; int newModel = OS . gtk_tree_store_newv ( types . length , types ) ; if ( newModel == 0 ) error ( ERROR_NO_HANDLES ) ; OS . gtk_tree_view_set_model ( handle , newModel ) ; OS . g_object_unref ( oldModel ) ; modelHandle = newModel ; OS . g_signal_handlers_unblock_matched ( selection , G_SIGNAL_MATCH_DATA , 0 , 0 , 0 , 0 , CHANGED ) ; <START_BUG> if ( ( ( style ) & ( SWT . VIRTUAL ) ) == 0 ) { <END_BUG> OS . gtk_tree_view_set_enable_search ( handle , false ) ; } else { int firstColumn = ( ( columnCount ) == 0 ) ? Tree . FIRST_COLUMN : columns [ 0 ] . modelIndex ; OS . gtk_tree_view_set_search_column ( handle , ( firstColumn + ( Tree . CELL_TEXT ) ) ) ; } } public void removeSelectionListener ( SelectionListener listener ) { } public void removeTreeListener ( TreeListener listener ) { } int rendererGetSizeProc ( int cell , int widget , int cell_area , int x_offset , int y_offset , int width , int height ) { } int rendererRenderProc ( int cell , int window , int widget , int background_area , int cell_area , int expose_area , int flags ) { } void resetCustomDraw ( ) { } public void setInsertMark ( TreeItem item , boolean before ) { } void setItemCount ( int parentIter , int count ) { } public void setItemCount ( int count ) { } public void selectAll ( ) { } void setBackgroundColor ( GdkColor color ) { } void setBackgroundPixmap ( int pixmap ) { } int setBounds ( int x , int y , int width , int height , boolean move , boolean resize ) { } public void setColumnOrder ( int [ ] order ) { } void setFontDescription ( int font ) { } void setForegroundColor ( GdkColor color ) { } public void setHeaderVisible ( boolean show ) { } public void setLinesVisible ( boolean show ) { } void setParentBackground ( ) { } void setParentWindow ( int widget ) { } void setScrollWidth ( int column , TreeItem item ) { } public void setSelection ( TreeItem item ) { } public void setSelection ( TreeItem [ ] items ) { } public void setSortColumn ( TreeColumn column ) { } public void setSortDirection ( int direction ) { } public void setTopItem ( TreeItem item ) { } public void showColumn ( TreeColumn column ) { } boolean showFirstColumn ( ) { } public void showSelection ( ) { }

Fix:
if ( ( ( style ) & ( SWT . VIRTUAL ) ) != 0 ) {