Buggy code:
void addBar ( Menu menu ) { } void addControl ( int handle , Control control ) { } public void addFilter ( int eventType , Listener listener ) { } public void addListener ( int eventType , Listener listener ) { } void addMenuItem ( MenuItem item ) { } void addPopup ( Menu menu ) { } int asciiKey ( int key ) { } public void asyncExec ( Runnable runnable ) { } public void beep ( ) { } protected void checkSubclass ( ) { } protected void checkDevice ( ) { } static synchronized void checkDisplay ( Thread thread , boolean multiple ) { } void clearModal ( Shell shell ) { } int controlKey ( int key ) { } public void close ( ) { } protected void create ( DeviceData data ) { } void createDisplay ( DeviceData data ) { } static int create32bitDIB ( Image image ) { } static int create32bitDIB ( int hBitmap , int alpha , byte [ ] alphaData , int transparentPixel ) { } static Image createIcon ( Image image ) { } static int createMaskFromAlpha ( ImageData data , int destWidth , int destHeight ) { } static synchronized void deregister ( Display display ) { } protected void destroy ( ) { } void destroyDisplay ( ) { } public void disposeExec ( Runnable runnable ) { } void drawMenuBars ( ) { } int embeddedProc ( int hwnd , int msg , int wParam , int lParam ) { } void error ( int code ) { } boolean filterEvent ( Event event ) { } boolean filters ( int eventType ) { } boolean filterMessage ( MSG msg ) { } Control findControl ( int handle ) { } public Widget findWidget ( int handle ) { } public Widget findWidget ( int handle , int id ) { } public Widget findWidget ( Widget widget , int id ) { } int foregroundIdleProc ( int code , int wParam , int lParam ) { } public static synchronized Display findDisplay ( Thread thread ) { } public Shell getActiveShell ( ) { } public Rectangle getBounds ( ) { } public static synchronized Display getCurrent ( ) { } int getClickCount ( int type , int button , int hwnd , int lParam ) { } public Rectangle getClientArea ( ) { } Control getControl ( int handle ) { } public Control getCursorControl ( ) { } public Point getCursorLocation ( ) { } public Point [ ] getCursorSizes ( ) { } public static synchronized Display getDefault ( ) { } static boolean isValidClass ( Class clazz ) { } public Object getData ( String key ) { } public Object getData ( ) { } public int getDismissalAlignment ( ) { } public int getDoubleClickTime ( ) { } public Control getFocusControl ( ) { } String getFontName ( LOGFONT logFont ) { } public boolean getHighContrast ( ) { } public int getIconDepth ( ) { } public Point [ ] getIconSizes ( ) { } ImageList getImageList ( int style , int width , int height ) { } ImageList getImageListToolBar ( int style , int width , int height ) { } ImageList getImageListToolBarDisabled ( int style , int width , int height ) { } ImageList getImageListToolBarHot ( int style , int width , int height ) { } int getLastEventTime ( ) { } MenuItem getMenuItem ( int id ) { } int getMessageCount ( ) { } Shell getModalShell ( ) { } Shell getModalDialogShell ( ) { } public Monitor [ ] getMonitors ( ) { } int getMsgProc ( int code , int wParam , int lParam ) { } public Monitor getPrimaryMonitor ( ) { } public Shell [ ] getShells ( ) { } Image getSortImage ( int direction ) { } public Thread getSyncThread ( ) { } public Color getSystemColor ( int id ) { checkDevice ( ) ; <START_BUG> int pixel = 33554432 ; <END_BUG> switch ( id ) { case SWT . COLOR_WIDGET_DARK_SHADOW : pixel = OS . GetSysColor ( COLOR_3DDKSHADOW ) ; break ; case SWT . COLOR_WIDGET_NORMAL_SHADOW : pixel = OS . GetSysColor ( COLOR_3DSHADOW ) ; break ; case SWT . COLOR_WIDGET_LIGHT_SHADOW : pixel = OS . GetSysColor ( COLOR_3DLIGHT ) ; break ; case SWT . COLOR_WIDGET_HIGHLIGHT_SHADOW : pixel = OS . GetSysColor ( COLOR_3DHIGHLIGHT ) ; break ; case SWT . COLOR_WIDGET_BACKGROUND : pixel = OS . GetSysColor ( COLOR_3DFACE ) ; break ; case SWT . COLOR_WIDGET_BORDER : pixel = OS . GetSysColor ( COLOR_WINDOWFRAME ) ; break ; case SWT . COLOR_WIDGET_FOREGROUND : case SWT . COLOR_LIST_FOREGROUND : pixel = OS . GetSysColor ( COLOR_WINDOWTEXT ) ; break ; case SWT . COLOR_LIST_BACKGROUND : pixel = OS . GetSysColor ( COLOR_WINDOW ) ; break ; case SWT . COLOR_LIST_SELECTION : pixel = OS . GetSysColor ( COLOR_HIGHLIGHT ) ; break ; case SWT . COLOR_LIST_SELECTION_TEXT : pixel = OS . GetSysColor ( COLOR_HIGHLIGHTTEXT ) ; break ; case SWT . COLOR_INFO_FOREGROUND : pixel = OS . GetSysColor ( COLOR_INFOTEXT ) ; break ; case SWT . COLOR_INFO_BACKGROUND : pixel = OS . GetSysColor ( COLOR_INFOBK ) ; break ; case SWT . COLOR_TITLE_FOREGROUND : pixel = OS . GetSysColor ( COLOR_CAPTIONTEXT ) ; break ; case SWT . COLOR_TITLE_BACKGROUND : pixel = OS . GetSysColor ( COLOR_ACTIVECAPTION ) ; break ; case SWT . COLOR_TITLE_BACKGROUND_GRADIENT : pixel = OS . GetSysColor ( COLOR_GRADIENTACTIVECAPTION ) ; if ( pixel == 0 ) pixel = OS . GetSysColor ( COLOR_ACTIVECAPTION ) ; break ; case SWT . COLOR_TITLE_INACTIVE_FOREGROUND : pixel = OS . GetSysColor ( COLOR_INACTIVECAPTIONTEXT ) ; break ; case SWT . COLOR_TITLE_INACTIVE_BACKGROUND : pixel = OS . GetSysColor ( COLOR_INACTIVECAPTION ) ; break ; case SWT . COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT : pixel = OS . GetSysColor ( COLOR_GRADIENTINACTIVECAPTION ) ;

Fix:
int pixel = 0 ;