Buggy code:
public class Table extends Composite { TableItem [ ] items ; TableColumn [ ] columns ; TableColumn sortColumn ; TableItem currentItem ; NSTableHeaderView headerView ; NSTableColumn firstColumn ; NSTableColumn checkColumn ; int columnCount ; int itemCount ; int lastIndexOf ; int sortDirection ; boolean ignoreSelect ; public Table ( Composite parent , int style ) { } public void addSelectionListener ( SelectionListener listener ) { } TableItem _getItem ( int index ) { } boolean checkData ( TableItem item , boolean redraw ) { } static int checkStyle ( int style ) { } 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 ( ) { <START_BUG> SWTScrollView scrollWidget = ( ( SWTScrollView ) ( new SWTScrollView ( ) . alloc ( ) ) ) ; <END_BUG> scrollWidget . initWithFrame ( new NSRect ( ) ) ; scrollWidget . setHasHorizontalScroller ( true ) ; scrollWidget . setHasVerticalScroller ( true ) ; scrollWidget . setAutohidesScrollers ( true ) ; scrollWidget . setBorderType ( ( hasBorder ( ) ? OS . NSBezelBorder : OS . NSNoBorder ) ) ; NSTableView widget = ( ( NSTableView ) ( new SWTTableView ( ) . alloc ( ) ) ) ; widget . initWithFrame ( new NSRect ( ) ) ; widget . setAllowsMultipleSelection ( ( ( ( style ) & ( SWT . MULTI ) ) != 0 ) ) ; widget . setDataSource ( widget ) ; widget . setDelegate ( widget ) ; widget . setDoubleAction ( sel_sendDoubleSelection ) ; if ( ! ( hasBorder ( ) ) ) widget . setFocusRingType ( NSFocusRingTypeNone ) ; headerView = widget . headerView ( ) ; headerView . retain ( ) ; widget . setHeaderView ( null ) ; NSString str = NSString . stringWith ( "" ) ; if ( ( ( style ) & ( SWT . CHECK ) ) != 0 ) { checkColumn = ( ( NSTableColumn ) ( new NSTableColumn ( ) . alloc ( ) ) ) ; checkColumn . initWithIdentifier ( str ) ; checkColumn . headerCell ( ) . setTitle ( str ) ; widget . addTableColumn ( checkColumn ) ; NSButtonCell cell = ( ( NSButtonCell ) ( new NSButtonCell ( ) . alloc ( ) . init ( ) ) ) ; checkColumn . setDataCell ( cell ) ; cell . setButtonType ( NSSwitchButton ) ; cell . setImagePosition ( NSImageOnly ) ; cell . setAllowsMixedState ( true ) ; cell . release ( ) ; checkColumn . setWidth ( getCheckColumnWidth ( ) ) ; checkColumn . setResizingMask ( NSTableColumnNoResizing ) ; checkColumn . setEditable ( false ) ; } firstColumn = ( ( NSTableColumn ) ( new NSTableColumn ( ) . alloc ( ) ) ) ; firstColumn . initWithIdentifier ( str ) ; NSCell cell = ( ( NSBrowserCell ) ( new NSBrowserCell ( ) . alloc ( ) . init ( ) ) ) ; firstColumn . setDataCell ( cell ) ; cell . release ( ) ; widget . addTableColumn ( firstColumn ) ; scrollView = scrollWidget ; view = widget ; } void createItem ( TableColumn column , int index ) { } void createItem ( TableItem item , int index ) { } void createWidget ( ) { } Color defaultBackground ( ) { } Color defaultForeground ( ) { } public void deselect ( int index ) { } public void deselect ( int start , int end ) { } public void deselect ( int [ ] indices ) { } public void deselectAll ( ) { } void destroyItem ( TableColumn column ) { } void destroyItem ( TableItem item ) { } void fixSelection ( int index , boolean add ) { } int getCheckColumnWidth ( ) { } public TableColumn getColumn ( int index ) { } public int getColumnCount ( ) { } public int [ ] getColumnOrder ( ) { } public TableColumn [ ] getColumns ( ) { } public int getGridLineWidth ( ) { } public int getHeaderHeight ( ) { } public boolean getHeaderVisible ( ) { } int getInsetWidth ( ) { } public TableItem getItem ( int index ) { } public TableItem getItem ( Point point ) { } public int getItemCount ( ) { } public int getItemHeight ( ) { } public TableItem [ ] getItems ( ) { } public boolean getLinesVisible ( ) { } public TableItem [ ] getSelection ( ) { } public int getSelectionCount ( ) { } public int getSelectionIndex ( ) { } public int [ ] getSelectionIndices ( ) { } public TableColumn getSortColumn ( ) { } public int getSortDirection ( ) { } public int getTopIndex ( ) { } public int indexOf ( TableColumn column ) { } public int indexOf ( TableItem item ) { } public boolean isSelected ( int index ) { } int numberOfRowsInTableView ( int aTableView ) { } void releaseChildren ( boolean destroy ) { } void releaseHandle ( ) { } void releaseWidget ( ) { } public void remove ( int index ) { } public void remove ( int start , int end ) { } public void remove ( int [ ] indices ) { } public void removeAll ( ) { } public void removeSelectionListener ( SelectionListener listener ) { } public void select ( int index ) { } public void select ( int start , int end ) { } public void select ( int [ ] indices ) { } void select ( int [ ] ids , int count , boolean clear ) { } public void selectAll ( ) { }

Fix:
NSScrollView scrollWidget = ( ( NSScrollView ) ( new SWTScrollView ( ) . alloc ( ) ) ) ;