Buggy code:
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 ) { if ( ! ( OS . g_thread_supported ( ) ) ) { OS . g_thread_init ( 0 ) ; } OS . gtk_set_locale ( ) ; if ( ! ( OS . gtk_init_check ( new int [ ] { 0 } , null ) ) ) { SWT . error ( ERROR_NO_HANDLES , null , "<seq2seq4repair_space>[gtk_init_check()<seq2seq4repair_space>failed]" ) ; } 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 . g_set_prgname ( buffer ) ; OS . gdk_set_program_class ( buffer ) ; <START_BUG> 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\"" , true ) ; <END_BUG> OS . gtk_rc_parse_string ( flatStyle ) ; shellHandle = OS . gtk_window_new ( GTK_WINDOW_TOPLEVEL ) ; if ( ( shellHandle ) == 0 ) SWT . error ( ERROR_NO_HANDLES ) ; OS . gtk_widget_realize ( shellHandle ) ; eventCallback = new Callback ( this , "eventProc" , 2 ) ; eventProc = eventCallback . getAddress ( ) ; if ( ( eventProc ) == 0 ) SWT . error ( ERROR_NO_MORE_CALLBACKS ) ; OS . gdk_event_handler_set ( eventProc , 0 , 0 ) ; filterCallback = new Callback ( this , "filterProc" , 3 ) ; filterProc = filterCallback . getAddress ( ) ; if ( ( filterProc ) == 0 ) error ( ERROR_NO_MORE_CALLBACKS ) ; OS . gdk_window_add_filter ( 0 , filterProc , 0 ) ; } 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 ( ) { }

Fix:
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\"" , true ) ;