Buggy code:
public abstract class Control extends Widget implements Drawable { public NSView view ; Composite parent ; String toolTipText ; Object layoutData ; int drawCount ; Menu menu ; Color foreground ; Color background ; Image backgroundImage ; Font font ; Cursor cursor ; Region region ; Accessible accessible ; Control ( ) { } public Control ( Composite parent , int style ) { } int accessibilityActionNames ( int id , int sel ) { } int accessibilityAttributeNames ( int id , int sel ) { <START_BUG> if ( ( id == ( view . id ) ) || ( ( ( view ) instanceof NSControl ) && ( ( ( ( NSControl ) ( view ) ) . cell ( ) . id ) == id ) ) ) { <END_BUG> if ( ( accessible ) != null ) { NSArray returnValue = accessible . internal_accessibilityAttributeNames ( CHILDID_SELF ) ; if ( returnValue != null ) return returnValue . id ; NSMutableArray extraAttributes = NSMutableArray . arrayWithCapacity ( 3 ) ; extraAttributes . addObject ( NSAccessibilityHelpAttribute ) ; extraAttributes . addObject ( NSAccessibilityDescriptionAttribute ) ; extraAttributes . addObject ( NSAccessibilityTitleAttribute ) ; for ( int i = ( extraAttributes . count ( ) ) - 1 ; i >= 0 ; i -- ) { NSString attribute = new NSString ( extraAttributes . objectAtIndex ( i ) . id ) ; if ( ( accessible . internal_accessibilityAttributeValue ( attribute , CHILDID_SELF ) ) == null ) { extraAttributes . removeObjectAtIndex ( i ) ; } } if ( ( extraAttributes . count ( ) ) > 0 ) { int superResult = super . accessibilityAttributeNames ( id , sel ) ; NSArray baseAttributes = new NSArray ( superResult ) ; NSMutableArray mutableAttributes = NSMutableArray . arrayWithCapacity ( ( ( baseAttributes . count ( ) ) + 1 ) ) ; mutableAttributes . addObjectsFromArray ( baseAttributes ) ; for ( int i = 0 ; i < ( extraAttributes . count ( ) ) ; i ++ ) { id currAttribute = extraAttributes . objectAtIndex ( i ) ; if ( ! ( mutableAttributes . containsObject ( currAttribute ) ) ) { mutableAttributes . addObject ( currAttribute ) ; } } return mutableAttributes . id ; } } } return super . accessibilityAttributeNames ( id , sel ) ; } int accessibilityParameterizedAttributeNames ( int id , int sel ) { } boolean accessibilityIsAttributeSettable ( int id , int sel , int arg0 ) { } int accessibilityFocusedUIElement ( int id , int sel ) { } int accessibilityHitTest ( int id , int sel , NSPoint point ) { } int accessibilityAttributeValue ( int id , int sel , int arg0 ) { } int accessibilityAttributeValue_forParameter ( int id , int sel , int arg0 , int arg1 ) { } public void addControlListener ( ControlListener listener ) { } public void addDragDetectListener ( DragDetectListener listener ) { } public void addFocusListener ( FocusListener listener ) { } public void addHelpListener ( HelpListener listener ) { } public void addKeyListener ( KeyListener listener ) { } public void addMenuDetectListener ( MenuDetectListener listener ) { } public void addMouseListener ( MouseListener listener ) { } public void addMouseTrackListener ( MouseTrackListener listener ) { } public void addMouseMoveListener ( MouseMoveListener listener ) { } public void addMouseWheelListener ( MouseWheelListener listener ) { } public void addPaintListener ( PaintListener listener ) { } public void addTraverseListener ( TraverseListener listener ) { } void checkBackground ( ) { } void checkBuffered ( ) { } public Point computeSize ( int wHint , int hHint ) { } public Point computeSize ( int wHint , int hHint , boolean changed ) { } Control computeTabGroup ( ) { } Control [ ] computeTabList ( ) { } Control computeTabRoot ( ) { } NSView contentView ( ) { } void createWidget ( ) { } Color defaultBackground ( ) { } Font defaultFont ( ) { } Color defaultForeground ( ) { } void deregister ( ) { } void destroyWidget ( ) { } void doCommandBySelector ( int id , int sel , int selector ) { } public boolean dragDetect ( Event event ) { } public boolean dragDetect ( MouseEvent event ) { } boolean dragDetect ( ) { } boolean dragDetect ( int x , int y , boolean filter , boolean [ ] consume ) { } boolean drawGripper ( int x , int y , int width , int height , boolean vertical ) { } void drawWidget ( int id , NSRect rect ) { } void enableWidget ( boolean enabled ) { } void fillBackground ( NSView view , NSGraphicsContext context , NSRect rect ) { } Cursor findCursor ( ) { } Control findBackgroundControl ( ) { } Menu [ ] findMenus ( Control control ) { } void fixChildren ( Shell newShell , Shell oldShell , Decorations newDecorations , Decorations oldDecorations , Menu [ ] menus ) { } void fixFocus ( Control focusControl ) { } void flagsChanged ( int id , int sel , int theEvent ) { } NSView focusView ( ) { } public boolean forceFocus ( ) { } public Accessible getAccessible ( ) { } public Color getBackground ( ) { } Color getBackgroundColor ( ) { } public Image getBackgroundImage ( ) { } public int getBorderWidth ( ) { } public Rectangle getBounds ( ) { } public boolean getDragDetect ( ) { } NSBezierPath getClipping ( ) { } public Cursor getCursor ( ) { } public boolean getEnabled ( ) { } public Font getFont ( ) { } public Color getForeground ( ) { } Color getForegroundColor ( ) { } public Object getLayoutData ( ) { } public Point getLocation ( ) { } public Menu getMenu ( ) { } int getMininumHeight ( ) { } public Monitor getMonitor ( ) { } public Composite getParent ( ) { }

Fix:
if ( ( id == ( view . id ) ) || ( ( ( ( view ) instanceof NSControl ) && ( ( ( ( NSControl ) ( view ) ) . cell ( ) ) != null ) ) && ( ( ( ( NSControl ) ( view ) ) . cell ( ) . id ) == id ) ) ) {