Buggy code:
public static Display findDisplay ( Thread thread ) { } public Shell getActiveShell ( ) { } public Rectangle getBounds ( ) { } public static Display getCurrent ( ) { } int getCaretBlinkTime ( ) { } public Rectangle getClientArea ( ) { } public Control getCursorControl ( ) { } public Point getCursorLocation ( ) { } public Point [ ] getCursorSizes ( ) { } public static Display getDefault ( ) { } public Object getData ( String key ) { } public Object getData ( ) { } public int getDismissalAlignment ( ) { } public int getDoubleClickTime ( ) { } public Control getFocusControl ( ) { } Control getFocusControl ( int window , boolean disabled ) { } public boolean getHighContrast ( ) { } public int getIconDepth ( ) { } public Point [ ] getIconSizes ( ) { } int getLastEventTime ( ) { } Menu [ ] getMenus ( Decorations shell ) { } Menu getMenu ( int id ) { } Menu getMenuBar ( ) { } int getMessageCount ( ) { } public Monitor [ ] getMonitors ( ) { } public Monitor getPrimaryMonitor ( ) { } public Shell [ ] getShells ( ) { } public Synchronizer getSynchronizer ( ) { } public Thread getSyncThread ( ) { } public Color getSystemColor ( int id ) { } public Cursor getSystemCursor ( int id ) { } public Image getSystemImage ( int id ) { } public Tray getSystemTray ( ) { } public Thread getThread ( ) { } Widget getWidget ( int handle ) { } int helpProc ( int inControl , int inGlobalMouse , int inRequest , int outContentProvided , int ioHelpContent ) { } int hitTestProc ( int browser , int item , int property , int theRect , int mouseRect ) { } protected void init ( ) { } void initializeCallbacks ( ) { } void initializeFonts ( ) { } void initializeInsets ( ) { int [ ] outControl = new int [ 1 ] ; Rect rect = new Rect ( ) ; rect . right = rect . bottom = ( ( short ) ( 200 ) ) ; OS . CreatePushButtonControl ( 0 , rect , 0 , outControl ) ; buttonInset = computeInset ( outControl [ 0 ] ) ; OS . DisposeControl ( outControl [ 0 ] ) ; OS . CreateTabsControl ( 0 , rect , ( ( short ) ( kControlTabSizeLarge ) ) , ( ( short ) ( kControlTabDirectionNorth ) ) , ( ( short ) ( 0 ) ) , 0 , outControl ) ; tabFolderNorthInset = computeInset ( outControl [ 0 ] ) ; OS . DisposeControl ( outControl [ 0 ] ) ; OS . CreateTabsControl ( 0 , rect , ( ( short ) ( kControlTabSizeLarge ) ) , ( ( short ) ( kControlTabDirectionSouth ) ) , ( ( short ) ( 0 ) ) , 0 , outControl ) ; tabFolderSouthInset = computeInset ( outControl [ 0 ] ) ; OS . DisposeControl ( outControl [ 0 ] ) ; OS . CreateEditUnicodeTextControl ( 0 , rect , 0 , false , null , outControl ) ; editTextInset = computeInset ( outControl [ 0 ] ) ; OS . DisposeControl ( outControl [ 0 ] ) ; int attributes = ( OS . kHISearchFieldAttributesSearchIcon ) | ( OS . kHISearchFieldAttributesCancel ) ; OS . HISearchFieldCreate ( null , attributes , 0 , 0 , outControl ) ; if ( smallFonts ) { OS . SetControlData ( outControl [ 0 ] , kControlEntireControl , kControlSizeTag , 2 , new short [ ] { OS . kControlSizeSmall } ) ; } searchTextInset = computeInset ( outControl [ 0 ] ) ; <START_BUG> editTextInset . bottom = editTextInset . top ; <END_BUG> OS . DisposeControl ( outControl [ 0 ] ) ; CGRect cgRect = new CGRect ( ) ; cgRect . width = cgRect . height = 200 ; int inAttributes = ( OS . kHIComboBoxAutoCompletionAttribute ) | ( OS . kHIComboBoxAutoSizeListAttribute ) ; OS . HIComboBoxCreate ( cgRect , 0 , null , 0 , inAttributes , outControl ) ; comboInset = computeInset ( outControl [ 0 ] ) ; comboInset . bottom = comboInset . top ; OS . DisposeControl ( outControl [ 0 ] ) ; } void initializeWidgetTable ( ) { } public int internal_new_GC ( GCData data ) { } public void internal_dispose_GC ( int context , GCData data ) { } static boolean isValidClass ( Class clazz ) { } boolean isValidThread ( ) { } int itemCompareProc ( int browser , int itemOne , int itemTwo , int sortProperty ) { } int itemDataProc ( int browser , int item , int property , int itemData , int setValue ) { } int itemNotificationProc ( int browser , int item , int message ) { } int keyboardProc ( int nextHandler , int theEvent , int userData ) { } public boolean post ( Event event ) { } void postEvent ( Event event ) { } public Point map ( Control from , Control to , Point point ) { } public Point map ( Control from , Control to , int x , int y ) { } public Rectangle map ( Control from , Control to , Rectangle rectangle ) { } public Rectangle map ( Control from , Control to , int x , int y , int width , int height ) { } int menuProc ( int nextHandler , int theEvent , int userData ) { } int mouseProc ( int nextHandler , int theEvent , int userData ) { } int mouseHoverProc ( int id , int handle ) { } int observerProc ( int observer , int activity , int info ) { } int readImageRef ( int path ) { } public boolean readAndDispatch ( ) { }

Fix:
searchTextInset . bottom = searchTextInset . top ;