Buggy code:
int resizeTrimHeight = 6 ; int titleBorderTrimWidth = 5 ; int titleBorderTrimHeight = 28 ; int titleResizeTrimWidth = 6 ; int titleResizeTrimHeight = 29 ; int titleTrimWidth = 0 ; int titleTrimHeight = 23 ; boolean ignoreTrim ; String windowManager ; static void setDevice ( Device device ) { } public Display ( ) { } public Display ( DeviceData data ) { } public void addFilter ( int eventType , Listener listener ) { } void addGdkEvent ( int event ) { } public void addListener ( int eventType , Listener listener ) { } void addMouseHoverTimeout ( int handle ) { } void addPopup ( Menu menu ) { } void addWidget ( int handle , Widget widget ) { } public void asyncExec ( Runnable runnable ) { } public void beep ( ) { } protected void checkDevice ( ) { } static synchronized void checkDisplay ( Thread thread , boolean multiple ) { } int checkIfEventProc ( int display , int xEvent , int userData ) { } protected void checkSubclass ( ) { } public void close ( ) { } protected void create ( DeviceData data ) { } synchronized void createDisplay ( DeviceData data ) { } Image createImage ( String name ) { } static int createPixbuf ( Image image ) { } synchronized void deregister ( ) { } protected void destroy ( ) { } void destroyDisplay ( ) { } public static synchronized Display findDisplay ( Thread thread ) { } public void disposeExec ( Runnable runnable ) { } void error ( int code ) { } int eventProc ( int event , int data ) { } public Widget findWidget ( int handle ) { } public Widget findWidget ( int handle , int id ) { } static int fixedClassInitProc ( int g_class , int class_data ) { } static int fixedMapProc ( int handle ) { } void flushExposes ( int window , boolean all ) { } public Shell getActiveShell ( ) { } public Rectangle getBounds ( ) { } public static synchronized Display getCurrent ( ) { } int getCaretBlinkTime ( ) { } public Control getCursorControl ( ) { } boolean filterEvent ( Event event ) { } boolean filters ( int eventType ) { } int filterProc ( int xEvent , int gdkEvent , int data ) { } public Point getCursorLocation ( ) { } public Point [ ] getCursorSizes ( ) { } public Object getData ( String key ) { } public Object getData ( ) { } public Point getDPI ( ) { } int gtk_fixed_get_type ( ) { } public static synchronized Display getDefault ( ) { } static boolean isValidClass ( Class clazz ) { } public int getDismissalAlignment ( ) { } public int getDoubleClickTime ( ) { } public Control getFocusControl ( ) { } public boolean getHighContrast ( ) { } public int getDepth ( ) { } public int getIconDepth ( ) { } public Point [ ] getIconSizes ( ) { } int getLastEventTime ( ) { } int getMessageCount ( ) { } Rectangle getWorkArea ( ) { } public Monitor [ ] getMonitors ( ) { } public Monitor getPrimaryMonitor ( ) { } public Shell [ ] getShells ( ) { } public Thread getSyncThread ( ) { } public Color getSystemColor ( int id ) { } public Cursor getSystemCursor ( int id ) { } public Image getSystemImage ( int id ) { } void initializeSystemColors ( ) { } public Font getSystemFont ( ) { } public Tray getSystemTray ( ) { checkDevice ( ) ; if ( ( tray ) != null ) return tray ; <START_BUG> return tray = new Tray ( this , SWT . NULL ) ; <END_BUG> } public Thread getThread ( ) { } Widget getWidget ( int handle ) { } protected void init ( ) { } void initializeCallbacks ( ) { } void initializeSystemSettings ( ) { } void initializeWidgetTable ( ) { } void initializeWindowManager ( ) { } public void internal_dispose_GC ( int gdkGC , GCData data ) { } public int internal_new_GC ( GCData data ) { } boolean isValidThread ( ) { } 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 ) { } static char mbcsToWcs ( char ch ) { } int menuPositionProc ( int menu , int x , int y , int push_in , int user_data ) { } public Rectangle map ( Control from , Control to , int x , int y , int width , int height ) { } int mouseHoverProc ( int handle ) { } public boolean post ( Event event ) { } void postEvent ( Event event ) { } void putGdkEvents ( ) { } public boolean readAndDispatch ( ) { } synchronized void register ( ) { } protected void release ( ) { } void releaseDisplay ( ) { } public void removeFilter ( int eventType , Listener listener ) { } int removeGdkEvent ( ) { } public void removeListener ( int eventType , Listener listener ) { } void removeMouseHoverTimeout ( int handle ) { } void removePopup ( Menu menu ) { } Widget removeWidget ( int handle ) { } boolean runAsyncMessages ( boolean all ) { } boolean runDeferredEvents ( ) { } boolean runPopups ( ) { } boolean runSettings ( ) { } public static void setAppName ( String name ) { } public void setCursorLocation ( int x , int y ) { } public void setCursorLocation ( Point point ) { } public void setData ( String key , Object value ) { }

Fix:
return tray = new Tray ( this , SWT . NONE ) ;