Buggy code:
public class Tree extends Composite { TreeItem [ ] items ; TreeColumn [ ] columns ; TreeColumn sortColumn ; int [ ] childIds ; GC paintGC ; int sortDirection ; int columnCount ; int column_id ; int idCount ; int anchorFirst ; int anchorLast ; int headerHeight ; int itemHeight ; boolean ignoreRedraw ; boolean ignoreSelect ; boolean wasSelected ; boolean ignoreExpand ; boolean wasExpanded ; boolean inClearAll ; boolean drawBackground ; Rectangle imageBounds ; TreeItem showItem ; int lastHittest ; int visibleCount ; static final int CHECK_COLUMN_ID = 1024 ; static final int COLUMN_ID = 1025 ; static final int GRID_WIDTH = 1 ; static final int ICON_AND_TEXT_GAP = 4 ; static final int CELL_CONTENT_INSET = 12 ; static final int BORDER_INSET = 1 ; static final int DISCLOSURE_COLUMN_EDGE_INSET = 8 ; static final int DISCLOSURE_TRIANGLE_AND_CONTENT_GAP = 8 ; public Tree ( Composite parent , int style ) { } void _addListener ( int eventType , Listener listener ) { } int _getId ( ) { } int [ ] _getIds ( int count ) { } TreeItem _getItem ( int id , boolean create ) { } TreeItem _getItem ( TreeItem parentItem , int index ) { } public void addSelectionListener ( SelectionListener listener ) { } public void addTreeListener ( TreeListener listener ) { } int calculateWidth ( int [ ] ids , GC gc , boolean recurse ) { } int callPaintEventHandler ( int control , int damageRgn , int visibleRgn , int theEvent , int nextHandler ) { } boolean checkData ( TreeItem item , boolean redraw ) { } static int checkStyle ( int style ) { } protected void checkSubclass ( ) { } void clear ( TreeItem parentItem , int index , boolean all ) { } void clearAll ( TreeItem parentItem , boolean all ) { } public void clear ( int index , boolean all ) { } public void clearAll ( boolean all ) { } public Point computeSize ( int wHint , int hHint , boolean changed ) { } public Rectangle computeTrim ( int x , int y , int width , int height ) { } boolean contains ( int shellX , int shellY ) { } void createHandle ( ) { column_id = Tree . COLUMN_ID ; int [ ] outControl = new int [ 1 ] ; int window = OS . GetControlOwner ( handle ) ; OS . CreateDataBrowserControl ( window , null , kDataBrowserListView , outControl ) ; OS . SetAutomaticControlDragTrackingEnabledForWindow ( window , true ) ; if ( ( outControl [ 0 ] ) == 0 ) error ( ERROR_NO_HANDLES ) ; handle = outControl [ 0 ] ; if ( ! ( drawFocusRing ( ) ) ) { OS . SetControlData ( handle , kControlEntireControl , kControlDataBrowserIncludesFrameAndFocusTag , 1 , new byte [ ] { 0 } ) ; } int selectionFlags = ( ( ( style ) & ( SWT . SINGLE ) ) != 0 ) ? ( OS . kDataBrowserSelectOnlyOne ) | ( OS . kDataBrowserNeverEmptySelectionSet ) : OS . kDataBrowserCmdTogglesSelection ; OS . SetDataBrowserSelectionFlags ( handle , selectionFlags ) ; short [ ] height = new short [ 1 ] ; OS . GetDataBrowserListViewHeaderBtnHeight ( handle , height ) ; headerHeight = height [ 0 ] ; OS . SetDataBrowserListViewHeaderBtnHeight ( handle , ( ( short ) ( 0 ) ) ) ; OS . SetDataBrowserHasScrollBars ( handle , ( ( ( style ) & ( SWT . H_SCROLL ) ) != 0 ) , ( ( ( style ) & ( SWT . V_SCROLL ) ) != 0 ) ) ; if ( ( OS . VERSION ) >= 4160 ) { <START_BUG> int inset = 1 ; <END_BUG> OS . DataBrowserSetMetric ( handle , kDataBrowserMetricCellContentInset , false , inset ) ; OS . DataBrowserSetMetric ( handle , kDataBrowserMetricDisclosureColumnEdgeInset , false , inset ) ; OS . DataBrowserSetMetric ( handle , kDataBrowserMetricDisclosureTriangleAndContentGap , false , inset ) ; OS . DataBrowserSetMetric ( handle , kDataBrowserMetricIconAndTextGap , false , inset ) ; } int position = 0 ; if ( ( ( style ) & ( SWT . CHECK ) ) != 0 ) { DataBrowserListViewColumnDesc checkColumn = new DataBrowserListViewColumnDesc ( ) ; checkColumn . headerBtnDesc_version = OS . kDataBrowserListViewLatestHeaderDesc ; checkColumn . propertyDesc_propertyID = Tree . CHECK_COLUMN_ID ; checkColumn . propertyDesc_propertyType = OS . kDataBrowserCheckboxType ; checkColumn . propertyDesc_propertyFlags = OS . kDataBrowserPropertyIsMutable ; int checkWidth = getCheckColumnWidth ( ) ; checkColumn . headerBtnDesc_minimumWidth = ( ( short ) ( checkWidth ) ) ; checkColumn . headerBtnDesc_maximumWidth = ( ( short ) ( checkWidth ) ) ; checkColumn . headerBtnDesc_initialOrder = ( ( short ) ( OS . kDataBrowserOrderIncreasing ) ) ; OS . AddDataBrowserListViewColumn ( handle , checkColumn , ( position ++ ) ) ; } DataBrowserListViewColumnDesc column = new DataBrowserListViewColumnDesc ( ) ; column . headerBtnDesc_version = OS . kDataBrowserListViewLatestHeaderDesc ; column . propertyDesc_propertyID = column_id ; column . propertyDesc_propertyType = OS . kDataBrowserCustomType ; column . propertyDesc_propertyFlags = ( ( OS . kDataBrowserListViewSelectionColumn ) | ( OS . kDataBrowserDefaultPropertyFlags ) ) | ( OS . kDataBrowserListViewSortableColumn ) ; column . headerBtnDesc_maximumWidth = 32767 ; column . headerBtnDesc_initialOrder = ( ( short ) ( OS . kDataBrowserOrderIncreasing ) ) ; OS . AddDataBrowserListViewColumn ( handle , column , position ) ; OS . SetDataBrowserListViewDisclosureColumn ( handle , column_id , false ) ; OS . SetDataBrowserTableViewNamedColumnWidth ( handle , column_id , ( ( short ) ( 0 ) ) ) ; OS . HIViewSetDrawingEnabled ( handle , false ) ; int size = 50 ; Rect rect = new Rect ( ) ; rect . right = rect . bottom = ( ( short ) ( size ) ) ; OS . SetControlBounds ( handle , rect ) ; int bpl = size * 4 ; int [ ] gWorld = new int [ 1 ] ; int data = OS . NewPtr ( ( bpl * size ) ) ;

Fix:
int inset = 4 ;