Buggy code:
, new int [ ] { OS . GDK_KP_3 , SWT . KEYPAD_3 } , new int [ ] { OS . GDK_KP_4 , SWT . KEYPAD_4 } , new int [ ] { OS . GDK_KP_5 , SWT . KEYPAD_5 } , new int [ ] { OS . GDK_KP_6 , SWT . KEYPAD_6 } , new int [ ] { OS . GDK_KP_7 , SWT . KEYPAD_7 } , new int [ ] { OS . GDK_KP_8 , SWT . KEYPAD_8 } , new int [ ] { OS . GDK_KP_9 , SWT . KEYPAD_9 } , new int [ ] { OS . GDK_KP_Equal , SWT . KEYPAD_EQUAL } , new int [ ] { OS . GDK_Caps_Lock , SWT . CAPS_LOCK } , new int [ ] { OS . GDK_Num_Lock , SWT . NUM_LOCK } , new int [ ] { OS . GDK_Scroll_Lock , SWT . SCROLL_LOCK } , new int [ ] { OS . GDK_Pause , SWT . PAUSE } , new int [ ] { OS . GDK_Break , SWT . BREAK } , new int [ ] { OS . GDK_Print , SWT . PRINT_SCREEN } , new int [ ] { OS . GDK_Help , SWT . HELP } } ; static Display Default ; static Display [ ] Displays = new Display [ 4 ] ; static final String PACKAGE_PREFIX = "org.eclipse.swt.widgets." ; static final Class OS_LOCK ; static final int MAJOR = 2 ; static final int MINOR = 0 ; static final int MICRO = 6 ; Object data ; String [ ] keys ; Object [ ] values ; int borderTrimWidth = 4 ; int borderTrimHeight = 4 ; int resizeTrimWidth = 6 ; int resizeTrimHeight = 6 ; int titleBorderTrimWidth = 5 ; int titleBorderTrimHeight = 28 ; int titleResizeTrimWidth = 6 ; int titleResizeTrimHeight = 29 ; int titleTrimWidth = 0 ; int titleTrimHeight = 23 ; 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 ) { } int checkIfEventProc ( int display , int xEvent , int userData ) { } protected void checkSubclass ( ) { } public void close ( ) { } protected void create ( DeviceData data ) { } synchronized void createDisplay ( DeviceData data ) { if ( ! ( OS . g_thread_supported ( ) ) ) { OS . g_thread_init ( 0 ) ; } OS . gtk_set_locale ( ) ; if ( ! ( OS . gtk_init_check ( new int [ ] { 0 } , null ) ) ) { <START_BUG> SWT . error ( ERROR_NO_HANDLES ) ; <END_BUG> } int ptr = OS . gtk_check_version ( Display . MAJOR , Display . MINOR , Display . MICRO ) ; if ( ptr != 0 ) { int length = OS . strlen ( ptr ) ; byte [ ] buffer = new byte [ length ] ; OS . memmove ( buffer , ptr , length ) ; System . out . println ( ( "***WARNING:<seq2seq4repair_space>" + ( new String ( Converter . mbcsToWcs ( null , buffer ) ) ) ) ) ; System . out . println ( ( ( ( ( ( "***WARNING:<seq2seq4repair_space>SWT<seq2seq4repair_space>requires<seq2seq4repair_space>GTK<seq2seq4repair_space>" + ( Display . MAJOR ) ) + "." ) + ( Display . MINOR ) ) + "." ) + ( Display . MICRO ) ) ) ; int major = OS . gtk_major_version ( ) ; int minor = OS . gtk_minor_version ( ) ; int micro = OS . gtk_micro_version ( ) ; System . out . println ( ( ( ( ( ( "***WARNING:<seq2seq4repair_space>Detected:<seq2seq4repair_space>" + major ) + "." ) + minor ) + "." ) + micro ) ) ; } if ( ( Display . fixed_type ) == 0 ) { byte [ ] type_name = Converter . wcsToMbcs ( null , "SwtFixed" , true ) ; Display . fixedClassInitCallback = new Callback ( getClass ( ) , "fixedClassInitProc" , 2 ) ; Display . fixedClassInitProc = Display . fixedClassInitCallback . getAddress ( ) ; if ( ( Display . fixedClassInitProc ) == 0 ) SWT . error ( ERROR_NO_MORE_CALLBACKS ) ; Display . fixedMapCallback = new Callback ( getClass ( ) , "fixedMapProc" , 1 ) ; Display . fixedMapProc = Display . fixedMapCallback . getAddress ( ) ; if ( ( Display . fixedMapProc ) == 0 ) SWT . error ( ERROR_NO_MORE_CALLBACKS ) ; GTypeInfo fixed_info = new GTypeInfo ( ) ; fixed_info . class_size = ( ( short ) ( OS . GtkFixedClass_sizeof ( ) ) ) ; fixed_info . class_init = Display . fixedClassInitProc ; fixed_info . instance_size = ( ( short ) ( OS . GtkFixed_sizeof ( ) ) ) ; Display . fixed_info_ptr = OS . g_malloc ( sizeof ) ; OS . memmove ( Display . fixed_info_ptr , fixed_info , sizeof ) ; Display . fixed_type = OS . g_type_register_static ( OS . GTK_TYPE_FIXED ( ) , type_name , Display . fixed_info_ptr , 0 ) ; } OS . gtk_widget_set_default_direction ( GTK_TEXT_DIR_LTR ) ; OS . gdk_rgb_init ( ) ; byte [ ] buffer = Converter . wcsToMbcs ( null , Display . APP_NAME , true ) ; OS . gdk_set_program_class ( buffer ) ; byte [ ] flatStyle = Converter . wcsToMbcs ( null , "style<seq2seq4repair_space>\"swt-flat\"<seq2seq4repair_space>{<seq2seq4repair_space>GtkToolbar::shadow-type<seq2seq4repair_space>=<seq2seq4repair_space>none<seq2seq4repair_space>}<seq2seq4repair_space>widget<seq2seq4repair_space>\"*swt-toolbar-flat*\"<seq2seq4repair_space>style<seq2seq4repair_space>:<seq2seq4repair_space>highest<seq2seq4repair_space>\"swt-flat\""

Fix:
SWT . error ( ERROR_NO_HANDLES , null , "<seq2seq4repair_space>[gtk_init_check()<seq2seq4repair_space>failed]" ) ;