Buggy code:
static int translateKey ( int key ) { } static int untranslateKey ( int key ) { } public void addFilter ( int eventType , Listener listener ) { } public void addListener ( int eventType , Listener listener ) { } public void asyncExec ( Runnable runnable ) { } public void beep ( ) { } protected void checkDevice ( ) { } protected void checkSubclass ( ) { } public Display ( ) { } public Display ( DeviceData data ) { } static void checkDisplay ( Thread thread , boolean multiple ) { } static String convertToLf ( String text ) { } public void close ( ) { } protected void create ( DeviceData data ) { } void createDisplay ( DeviceData data ) { } static void deregister ( Display display ) { } protected void destroy ( ) { } void destroyDisplay ( ) { } public void disposeExec ( Runnable runnable ) { } void error ( int code ) { } boolean filterEvent ( Event event ) { } boolean filters ( int eventType ) { } public Widget findWidget ( int handle ) { } public Widget findWidget ( int handle , int id ) { } public Widget findWidget ( Widget widget , int id ) { } 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 ( ) { } public boolean getHighContrast ( ) { } public int getIconDepth ( ) { } public Point [ ] getIconSizes ( ) { } int getLastEventTime ( ) { } int getMessageCount ( ) { } public Monitor [ ] getMonitors ( ) { } public Monitor getPrimaryMonitor ( ) { } public Shell [ ] getShells ( ) { } public Synchronizer getSynchronizer ( ) { } public Thread getSyncThread ( ) { } public Color getSystemColor ( int id ) { checkDevice ( ) ; NSColor color = null ; switch ( id ) { case SWT . COLOR_INFO_FOREGROUND : return super . getSystemColor ( COLOR_BLACK ) ; case SWT . COLOR_INFO_BACKGROUND : return Color . cocoa_new ( this , new float [ ] { 255 // 255.0F , 255 // 255.0F , 225 // 255.0F , 1 } ) ; case SWT . COLOR_TITLE_FOREGROUND : color = NSColor . windowFrameTextColor ( ) ; break ; case SWT . COLOR_TITLE_BACKGROUND : color = NSColor . secondarySelectedControlColor ( ) ; break ; case SWT . COLOR_TITLE_BACKGROUND_GRADIENT : color = NSColor . windowFrameColor ( ) ; break ; case SWT . COLOR_TITLE_INACTIVE_FOREGROUND : color = NSColor . disabledControlTextColor ( ) ; break ; case SWT . COLOR_TITLE_INACTIVE_BACKGROUND : color = NSColor . secondarySelectedControlColor ( ) ; break ; case SWT . COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT : color = NSColor . secondarySelectedControlColor ( ) ; break ; case SWT . COLOR_WIDGET_DARK_SHADOW : color = NSColor . controlDarkShadowColor ( ) ; break ; case SWT . COLOR_WIDGET_NORMAL_SHADOW : color = NSColor . controlShadowColor ( ) ; break ; case SWT . COLOR_WIDGET_LIGHT_SHADOW : color = NSColor . controlHighlightColor ( ) ; break ; case SWT . COLOR_WIDGET_HIGHLIGHT_SHADOW : color = NSColor . controlLightHighlightColor ( ) ; break ; case SWT . COLOR_WIDGET_BACKGROUND : <START_BUG> color = NSColor . lightGrayColor ( ) ; <END_BUG> break ; case SWT . COLOR_WIDGET_FOREGROUND : color = NSColor . controlTextColor ( ) ; break ; case SWT . COLOR_WIDGET_BORDER : return super . getSystemColor ( COLOR_BLACK ) ; case SWT . COLOR_LIST_FOREGROUND : color = NSColor . textColor ( ) ; break ; case SWT . COLOR_LIST_BACKGROUND : color = NSColor . textBackgroundColor ( ) ; break ; case SWT . COLOR_LIST_SELECTION_TEXT : color = NSColor . selectedTextColor ( ) ; break ; case SWT . COLOR_LIST_SELECTION : color = NSColor . selectedTextBackgroundColor ( ) ; break ; default : return super . getSystemColor ( id ) ; } if ( color == null ) return super . getSystemColor ( id ) ; color = color . colorUsingColorSpace ( NSColorSpace . deviceRGBColorSpace ( ) ) ; if ( color == null ) return super . getSystemColor ( id ) ; float [ ] components = new float [ color . numberOfComponents ( ) ] ; color . getComponents ( components ) ; return Color . cocoa_new ( this , new float [ ] { components [ 0 ] , components [ 1 ] , components [ 2 ] , components [ 3 ] } ) ; } public Cursor getSystemCursor ( int id ) { } public Image getSystemImage ( int id ) { } public Tray getSystemTray ( ) { } public Thread getThread ( ) { } protected void init ( ) { } void initClasses ( ) { } public int internal_new_GC ( GCData data ) { } public void internal_dispose_GC ( int context , GCData data ) { } static boolean isValidClass ( Class clazz ) { } boolean isValidThread ( ) { } 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 ) { }

Fix:
color = NSColor . controlHighlightColor ( ) ;