Buggy code:
Vector accessibleTableListeners = new Vector ( ) ; Vector accessibleTableCellListeners = new Vector ( ) ; Vector accessibleTextExtendedListeners = new Vector ( ) ; Vector accessibleValueListeners = new Vector ( ) ; Vector accessibleScrollListeners = new Vector ( ) ; Vector accessibleAttributeListeners = new Vector ( ) ; Relation [ ] relations = new Relation [ Accessible . MAX_RELATION_TYPES ] ; Accessible parent ; Control control ; Map childToIdMap = new HashMap ( ) ; Vector children = new Vector ( ) ; SWTAccessibleDelegate delegate ; int index = - 1 ; public Accessible ( Accessible parent ) { } protected Accessible ( ) { } Accessible ( Control control ) { } void addAccessibleChild ( Accessible accessible ) { } static Accessible checkNull ( Accessible parent ) { } public static Accessible internal_new_Accessible ( Control control ) { } id accessibleHandle ( Accessible accessible ) { } public void addAccessibleListener ( AccessibleListener listener ) { } public void addAccessibleControlListener ( AccessibleControlListener listener ) { } public void addAccessibleTextListener ( AccessibleTextListener listener ) { } public void addAccessibleActionListener ( AccessibleActionListener listener ) { } public void addAccessibleHyperlinkListener ( AccessibleHyperlinkListener listener ) { } public void addAccessibleTableListener ( AccessibleTableListener listener ) { } public void addAccessibleTableCellListener ( AccessibleTableCellListener listener ) { } public void addAccessibleValueListener ( AccessibleValueListener listener ) { } public void addAccessibleAttributeListener ( AccessibleAttributeListener listener ) { } public void addRelation ( int type , Accessible target ) { } id getColumnIndexRangeAttribute ( int childID ) { } id getRowIndexRangeAttribute ( int childID ) { } id getSelectedAttribute ( int childID ) { } id getIndexAttribute ( int childID ) { } id getHeaderAttribute ( int childID ) { } id getVisibleColumnsAttribute ( int childID ) { } id getVisibleRowsAttribute ( int childID ) { } id getSelectedRowsAttribute ( int childID ) { } id getRowsAttribute ( int childID ) { } id getSelectedColumnsAttribute ( int childID ) { } id getColumnsAttribute ( int childID ) { } public id internal_accessibilityActionDescription ( NSString action , int childID ) { } public NSArray internal_accessibilityActionNames ( int childID ) { } public boolean internal_accessibilityIsAttributeSettable ( NSString attribute ) { } public NSArray internal_accessibilityAttributeNames ( int childID ) { } public id internal_accessibilityAttributeValue ( NSString attribute , int childID ) { } public id internal_accessibilityAttributeValue_forParameter ( NSString attribute , id parameter , int childID ) { } public id internal_accessibilityFocusedUIElement ( int childID ) { } public id internal_accessibilityHitTest ( NSPoint point , int childID ) { } public boolean internal_accessibilityIsIgnored ( int childID ) { } public NSArray internal_accessibilityParameterizedAttributeNames ( int childID ) { } public boolean internal_accessibilityPerformAction ( NSString action , int childID ) { String actionName = action . getString ( ) ; if ( ( accessibleActionListeners . size ( ) ) > 0 ) { AccessibleActionEvent event = new AccessibleActionEvent ( this ) ; for ( int i = 0 ; i < ( accessibleActionListeners . size ( ) ) ; i ++ ) { AccessibleActionListener listener = ( ( AccessibleActionListener ) ( accessibleActionListeners . elementAt ( i ) ) ) ; listener . getActionCount ( event ) ; } int index = - 1 ; for ( int i = 0 ; i < ( event . count ) ; i ++ ) { event . index = i ; for ( int j = 0 ; j < ( accessibleActionListeners . size ( ) ) ; j ++ ) { AccessibleActionListener listener = ( ( AccessibleActionListener ) ( accessibleActionListeners . elementAt ( j ) ) ) ; listener . getName ( event ) ; } if ( actionName . equals ( event . result ) ) { index = i ; break ; } } if ( index != ( - 1 ) ) { event . index = index ; event . result = null ; for ( int i = 0 ; i < ( accessibleActionListeners . size ( ) ) ; i ++ ) { AccessibleActionListener listener = ( ( AccessibleActionListener ) ( accessibleActionListeners . elementAt ( i ) ) ) ; listener . doAction ( event ) ; } <START_BUG> return true ; <END_BUG> } } return false ; } public void internal_accessibilitySetValue_forAttribute ( id value , NSString attribute ) { } public void dispose ( ) { } public Control getControl ( ) { } public void internal_dispose_Accessible ( ) { } id getBoundsForRangeParameterizedAttribute ( id parameter , int childID ) { } id getExpandedAttribute ( int childID ) { } id getHelpAttribute ( int childID ) { } id getRangeForPositionParameterizedAttribute ( id parameter , int childID ) { } NSString getRoleAttribute ( int childID ) { } id getSubroleAttribute ( int childID ) { } id getRoleDescriptionAttribute ( int childID ) { } id getTitleAttribute ( int childID ) { } id getTitleUIElementAttribute ( int childID ) { } id getValueAttribute ( int childID ) { } id getEnabledAttribute ( int childID ) { } id getFocusedAttribute ( int childID ) { } id getParentAttribute ( int childID ) { } id getChildrenAttribute ( int childID ) { } id getTabsAttribute ( int childID ) { } id getWindowAttribute ( int childID ) { } id getTopLevelUIElementAttribute ( int childID ) { } id getPositionAttribute ( int childID ) { } id getSizeAttribute ( int childID ) { } id getCellForColumnAndRowParameter ( id parameter , int childID ) { } id getDescriptionAttribute ( int childID ) { } id getInsertionPointLineNumberAttribute ( int childID ) { } id getLineForIndexParameterizedAttribute ( id parameter , int childID ) { } id getMaxValueAttribute ( int childID ) { } id getMinValueAttribute ( int childID ) { } id getNumberOfCharactersAttribute ( int childID ) { } id getRangeForLineParameterizedAttribute ( id parameter , int childID ) { } id getSelectedTextAttribute ( int childID ) { } id getSelectedTextRangeAttribute ( int childID ) { } id getServesAsTitleForUIElementsAttribute ( int childID ) { } id getStringForRangeParameterizedAttribute ( id parameter , int childID ) { }

Fix:
return OK . equals ( event . result ) ;