Buggy code:
, new int [ ] { OS . Key_OemSemicolon , ';' } , new int [ ] { OS . Key_Oem7 , '\'' } , new int [ ] { OS . Key_OemComma , ',' } , new int [ ] { OS . Key_OemPeriod , '.' } , new int [ ] { OS . Key_Oem2 , '//' } } ; static Display Default ; static Display [ ] Displays = new Display [ 4 ] ; static Monitor [ ] monitors = null ; static int monitorCount = 0 ; Shell [ ] modalShells ; Shell modalDialogShell ; static boolean TrimEnabled = false ; int hitCount ; static final String PACKAGE_PREFIX = "org.eclipse.swt.widgets." ; static void setDevice ( Device device ) { } public Display ( ) { } public Display ( DeviceData data ) { } Control _getFocusControl ( ) { } void addWidget ( int handle , Widget widget ) { } public void addFilter ( int eventType , Listener listener ) { } void addInvalidate ( Control control ) { } public void addListener ( int eventType , Listener listener ) { } void addPopup ( Menu menu ) { } public void asyncExec ( Runnable runnable ) { } public void beep ( ) { } protected void checkSubclass ( ) { } protected void checkDevice ( ) { } static synchronized void checkDisplay ( Thread thread , boolean multiple ) { } void checkExitFrame ( int e ) { } void clearModal ( Shell shell ) { } public void close ( ) { } protected void create ( DeviceData data ) { } void createDisplay ( DeviceData data ) { } static synchronized 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 synchronized Display findDisplay ( Thread thread ) { } public Shell getActiveShell ( ) { } public Rectangle getBounds ( ) { } public static synchronized Display getCurrent ( ) { } public Rectangle getClientArea ( ) { } Widget getWidget ( 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 ( ) { } public boolean getHighContrast ( ) { } public int getIconDepth ( ) { } public Point [ ] getIconSizes ( ) { } int getLastEventTime ( ) { } int getMessageCount ( ) { } Shell getModalShell ( ) { } Shell getModalDialogShell ( ) { } 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 ) { } public Tray getSystemTray ( ) { } public Thread getThread ( ) { } public int internal_new_GC ( GCData data ) { if ( isDisposed ( ) ) SWT . error ( ERROR_DEVICE_DISPOSED ) ; if ( data == null ) return 0 ; int visual = OS . gcnew_DrawingVisual ( ) ; if ( visual == 0 ) SWT . error ( ERROR_NO_HANDLES ) ; int dc = OS . DrawingVisual_RenderOpen ( visual ) ; if ( dc == 0 ) SWT . error ( ERROR_NO_HANDLES ) ; data . visual = visual ; <START_BUG> return data . drawingContext = dc ; <END_BUG> } protected void init ( ) { } void HandleDispatcherInactive ( int sender , int e ) { } void HandleOperationAborted ( int sender , int e ) { } void HandleOperationCompleted ( int sender , int e ) { } void HandleOperationPosted ( int sender , int e ) { } public void internal_dispose_GC ( int dc , 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 ) { } public Rectangle map ( Control from , Control to , int x , int y , int width , int height ) { } public boolean post ( Event event ) { } void postEvent ( Event event ) { } void removePopup ( Menu menu ) { } public boolean readAndDispatch ( ) { } static synchronized void register ( Display display ) { } protected void release ( ) { } void releaseDisplay ( ) { } public void removeFilter ( int eventType , Listener listener ) { } public void removeListener ( int eventType , Listener listener ) { } Widget removeWidget ( int handle ) { } boolean runAsyncMessages ( boolean all ) { } boolean runDeferredEvents ( ) { } boolean runInvalidate ( ) { } boolean runPopups ( ) { } void runSettings ( ) { } void saveResources ( ) { } void sendEvent ( int eventType , Event event ) { } public void setCursorLocation ( int x , int y ) { } public void setCursorLocation ( Point point ) { } public void setData ( String key , Object value ) { }

Fix:
return dc ;