Buggy code:
public final class CCombo extends Composite { Text text ; List list ; int visibleItemCount = 5 ; Shell popup ; Button arrow ; boolean hasFocus ; Listener listener ; Listener filter ; Color foreground ; Color background ; Font font ; public CCombo ( Composite parent , int style ) { } static int checkStyle ( int style ) { } public void add ( String string ) { } public void add ( String string , int index ) { } public void addModifyListener ( ModifyListener listener ) { } public void addSelectionListener ( SelectionListener listener ) { } void arrowEvent ( Event event ) { } public void clearSelection ( ) { } void comboEvent ( Event event ) { } public Point computeSize ( int wHint , int hHint , boolean changed ) { } void createPopup ( String [ ] items , int selectionIndex ) { } public void deselect ( int index ) { } public void deselectAll ( ) { } void dropDown ( boolean drop ) { } Label getAssociatedLabel ( ) { } public Control [ ] getChildren ( ) { } public boolean getEditable ( ) { } public String getItem ( int index ) { } public int getItemCount ( ) { } public int getItemHeight ( ) { } public String [ ] getItems ( ) { } char getMnemonic ( String string ) { } public Point getSelection ( ) { } public int getSelectionIndex ( ) { } public int getStyle ( ) { } public String getText ( ) { } public int getTextHeight ( ) { } public int getTextLimit ( ) { } public int getVisibleItemCount ( ) { } void handleFocus ( int type ) { } public int indexOf ( String string ) { } public int indexOf ( String string , int start ) { } void initAccessible ( ) { AccessibleAdapter accessibleAdapter = new AccessibleAdapter ( ) { public void getName ( AccessibleEvent e ) { String name = null ; Label label = getAssociatedLabel ( ) ; if ( label != null ) { name = stripMnemonic ( label . getText ( ) ) ; } e . result = name ; } public void getKeyboardShortcut ( AccessibleEvent e ) { String shortcut = null ; Label label = getAssociatedLabel ( ) ; if ( label != null ) { String text = label . getText ( ) ; if ( text != null ) { char mnemonic = getMnemonic ( text ) ; if ( mnemonic != '' ) { shortcut = "Alt+" + mnemonic ; } } } e . result = shortcut ; } public void getHelp ( AccessibleEvent e ) { e . result = getToolTipText ( ) ; } } ; getAccessible ( ) . addAccessibleListener ( accessibleAdapter ) ; text . getAccessible ( ) . addAccessibleListener ( accessibleAdapter ) ; list . getAccessible ( ) . addAccessibleListener ( accessibleAdapter ) ; arrow . getAccessible ( ) . addAccessibleListener ( new AccessibleAdapter ( ) { public void getName ( AccessibleEvent e ) { <START_BUG> e . result = ( isDropped ( ) ) ? "Close" : "Open" ; <END_BUG> } public void getKeyboardShortcut ( AccessibleEvent e ) { e . result = "Alt+Down<seq2seq4repair_space>Arrow" ; } public void getHelp ( AccessibleEvent e ) { e . result = getToolTipText ( ) ; } } ) ; getAccessible ( ) . addAccessibleTextListener ( new AccessibleTextAdapter ( ) { public void getCaretOffset ( AccessibleTextEvent e ) { e . offset = text . getCaretPosition ( ) ; } } ) ; getAccessible ( ) . addAccessibleControlListener ( new AccessibleControlAdapter ( ) { public void getChildAtPoint ( AccessibleControlEvent e ) { Point testPoint = toControl ( e . x , e . y ) ; if ( getBounds ( ) . contains ( testPoint ) ) { e . childID = ACC . CHILDID_SELF ; } } public void getLocation ( AccessibleControlEvent e ) { Rectangle location = getBounds ( ) ; Point pt = toDisplay ( location . x , location . y ) ; e . x = pt . x ; e . y = pt . y ; e . width = location . width ; e . height = location . height ; } public void getChildCount ( AccessibleControlEvent e ) { e . detail = 0 ; } public void getRole ( AccessibleControlEvent e ) { e . detail = ACC . ROLE_COMBOBOX ; } public void getState ( AccessibleControlEvent e ) { e . detail = ACC . STATE_NORMAL ; } public void getValue ( AccessibleControlEvent e ) { e . result = getText ( ) ; } } ) ; text . getAccessible ( ) . addAccessibleControlListener ( new AccessibleControlAdapter ( ) { public void getRole ( AccessibleControlEvent e ) { e . detail = ( text . getEditable ( ) ) ? ACC . ROLE_TEXT : ACC . ROLE_LABEL ; } } ) ; arrow . getAccessible ( ) . addAccessibleControlListener ( new AccessibleControlAdapter ( ) { public void getDefaultAction ( AccessibleControlEvent e ) { e . result = ( isDropped ( ) ) ? SWT . getMessage ( "SWT_Close" ) : SWT . getMessage ( "SWT_Open" ) ; } } ) ; } boolean isDropped ( ) { } public boolean isFocusControl ( ) { } void internalLayout ( boolean changed ) { } void listEvent ( Event event ) { } void popupEvent ( Event event ) { } public void redraw ( ) { } public void redraw ( int x , int y , int width , int height , boolean all ) { } public void remove ( int index ) { } public void remove ( int start , int end ) { } public void remove ( String string ) { } public void removeAll ( ) { } public void removeModifyListener ( ModifyListener listener ) { }

Fix:
e . result = ( isDropped ( ) ) ? SWT . getMessage ( "SWT_Close" ) : SWT . getMessage ( "SWT_Open" ) ;