Buggy code:
public void addSelectionListener ( SelectionListener listener ) { } public void addVerifyListener ( VerifyListener listener ) { } void arrowEvent ( Event event ) { } public void clearSelection ( ) { } void comboEvent ( Event event ) { } public Point computeSize ( int wHint , int hHint , boolean changed ) { } public void copy ( ) { } void createPopup ( String [ ] items , int selectionIndex ) { } public void cut ( ) { } public void deselect ( int index ) { } public void deselectAll ( ) { } void dropDown ( boolean drop ) { } char _findMnemonic ( String string ) { } Label getAssociatedLabel ( ) { } public Control [ ] getChildren ( ) { } public boolean getEditable ( ) { } public String getItem ( int index ) { } public int getItemCount ( ) { } public int getItemHeight ( ) { } public String [ ] getItems ( ) { } public Menu getMenu ( ) { } 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 = _findMnemonic ( 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 ) { e . result = ( isDropped ( ) ) ? SWT . getMessage ( "SWT_Close" ) : SWT . getMessage ( "SWT_Open" ) ; } 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 ( ) ; } public void getSelectionRange ( AccessibleTextEvent e ) { Point sel = text . getSelection ( ) ; e . offset = sel . x ; e . length = ( sel . y ) - ( sel . x ) ; } } ) ; 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 ( ) ; <START_BUG> Point pt = toDisplay ( location . x , location . y ) ; <END_BUG> 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 ) { } public void paste ( ) { } 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:
Point pt = getParent ( ) . toDisplay ( location . x , location . y ) ;