Buggy code:
static Text overrideText ; static Table table ; static Table overrideTable ; static Tree tree ; static Tree overrideTree ; static Tree treeTable ; static Tree overrideTreeTable ; static ToolBar toolBar ; static ToolBar overrideToolBar ; static ToolBar imageToolBar ; static ToolBar overrideImageToolBar ; static CoolBar coolBar ; static CoolBar overrideCoolBar ; static Canvas canvas ; static Canvas overrideCanvas ; static Group group ; static Group overrideGroup ; static TabFolder tabFolder ; static TabFolder overrideTabFolder ; static CLabel cLabel ; static CLabel overrideCLabel ; static CCombo cCombo ; static CCombo overrideCCombo ; static CTabFolder cTabFolder ; static CTabFolder overrideCTabFolder ; static StyledText styledText ; static StyledText overrideStyledText ; static ProgressBar progressBar ; static ProgressBar overrideProgressBar ; static Sash sash ; static Sash overrideSash ; static Scale scale ; static Scale overrideScale ; static Slider slider ; static Slider overrideSlider ; static Image image ; public static void main ( String [ ] args ) { ControlsWithAccessibleNamesExample . display = new Display ( ) ; ControlsWithAccessibleNamesExample . shell = new Shell ( ControlsWithAccessibleNamesExample . display ) ; ControlsWithAccessibleNamesExample . shell . setLayout ( new GridLayout ( 2 , true ) ) ; ControlsWithAccessibleNamesExample . shell . setText ( "Override<seq2seq4repair_space>Accessibility<seq2seq4repair_space>Test" ) ; new Label ( ControlsWithAccessibleNamesExample . shell , SWT . NONE ) . setText ( "Use<seq2seq4repair_space>Platform<seq2seq4repair_space>Name" ) ; new Label ( ControlsWithAccessibleNamesExample . shell , SWT . NONE ) . setText ( "Override<seq2seq4repair_space>Platform<seq2seq4repair_space>Name" ) ; AccessibleAdapter overrideAccessibleAdapter = new AccessibleAdapter ( ) { public void getName ( AccessibleEvent e ) { Control control = ( ( Accessible ) ( e . getSource ( ) ) ) . getControl ( ) ; if ( ( e . childID ) == ( ACC . CHILDID_SELF ) ) { e . result = ( ( ( "Overriding<seq2seq4repair_space>Platform<seq2seq4repair_space>Name<seq2seq4repair_space>For<seq2seq4repair_space>" + ( control . getData ( "name" ) ) ) + "<seq2seq4repair_space>(was<seq2seq4repair_space>" ) + ( e . result ) ) + ")" ; } else { e . result = ( ( ( ( ( "Overriding<seq2seq4repair_space>Platform<seq2seq4repair_space>Name<seq2seq4repair_space>For<seq2seq4repair_space>" + ( control . getData ( "child" ) ) ) + ":<seq2seq4repair_space>" ) + ( e . childID ) ) + "<seq2seq4repair_space>(was<seq2seq4repair_space>" ) + ( e . result ) ) + ")" ; } } public void getHelp ( AccessibleEvent e ) { Control control = ( ( Accessible ) ( e . getSource ( ) ) ) . getControl ( ) ; if ( ( e . childID ) == ( ACC . CHILDID_SELF ) ) { e . result = ( ( ( "Overriding<seq2seq4repair_space>Platform<seq2seq4repair_space>Help<seq2seq4repair_space>For<seq2seq4repair_space>" + ( control . getData ( "name" ) ) ) + "<seq2seq4repair_space>(was<seq2seq4repair_space>" ) + ( e . result ) ) + ")" ; } else { e . result = ( ( ( ( ( "Overriding<seq2seq4repair_space>Platform<seq2seq4repair_space>Help<seq2seq4repair_space>For<seq2seq4repair_space>" + ( control . getData ( "child" ) ) ) + ":<seq2seq4repair_space>" ) + ( e . childID ) ) + "<seq2seq4repair_space>(was<seq2seq4repair_space>" ) + ( e . result ) ) + ")" ; } } } ; ControlsWithAccessibleNamesExample . shell . setData ( "name" , "Shell" ) ; ControlsWithAccessibleNamesExample . shell . getAccessible ( ) . addAccessibleListener ( overrideAccessibleAdapter ) ; ControlsWithAccessibleNamesExample . label = new Label ( ControlsWithAccessibleNamesExample . shell , SWT . BORDER ) ; ControlsWithAccessibleNamesExample . label . setText ( "Label" ) ; ControlsWithAccessibleNamesExample . label . setToolTipText ( "Label<seq2seq4repair_space>ToolTip" ) ; ControlsWithAccessibleNamesExample . overrideLabel = new Label ( ControlsWithAccessibleNamesExample . shell , SWT . BORDER ) ; ControlsWithAccessibleNamesExample . overrideLabel . setText ( "Label" ) ; ControlsWithAccessibleNamesExample . overrideLabel . setToolTipText ( "Label<seq2seq4repair_space>ToolTip" ) ; ControlsWithAccessibleNamesExample . overrideLabel . setData ( "name" , "Label" ) ; ControlsWithAccessibleNamesExample . overrideLabel . getAccessible ( ) . addAccessibleListener ( overrideAccessibleAdapter ) ; <START_BUG> ControlsWithAccessibleNamesExample . image = new Image ( ControlsWithAccessibleNamesExample . display , ControlsWithAccessibleNamesExample . class . getResourceAsStream ( "image.bmp" ) ) ; <END_BUG> ControlsWithAccessibleNamesExample . imageLabel = new Label ( ControlsWithAccessibleNamesExample . shell , SWT . BORDER ) ; ControlsWithAccessibleNamesExample . imageLabel . setImage ( ControlsWithAccessibleNamesExample . image ) ; ControlsWithAccessibleNamesExample . imageLabel . setToolTipText ( "Image<seq2seq4repair_space>Label<seq2seq4repair_space>ToolTip" ) ; ControlsWithAccessibleNamesExample . overrideImageLabel = new Label ( ControlsWithAccessibleNamesExample . shell , SWT . BORDER ) ; ControlsWithAccessibleNamesExample . overrideImageLabel . setImage ( ControlsWithAccessibleNamesExample . image ) ; ControlsWithAccessibleNamesExample . overrideImageLabel . setToolTipText ( "Image<seq2seq4repair_space>Label<seq2seq4repair_space>ToolTip" ) ; ControlsWithAccessibleNamesExample . overrideImageLabel . setData ( "name" , "Image<seq2seq4repair_space>Label" ) ; ControlsWithAccessibleNamesExample . overrideImageLabel . getAccessible ( ) . addAccessibleListener ( overrideAccessibleAdapter ) ; ControlsWithAccessibleNamesExample . button = new Button ( ControlsWithAccessibleNamesExample . shell , SWT . PUSH ) ; ControlsWithAccessibleNamesExample . button . setText ( "Button" ) ; ControlsWithAccessibleNamesExample . button . setToolTipText ( "Button<seq2seq4repair_space>ToolTip" ) ; ControlsWithAccessibleNamesExample . overrideButton = new Button ( ControlsWithAccessibleNamesExample . shell , SWT . PUSH ) ; ControlsWithAccessibleNamesExample . overrideButton . setText ( "Button" ) ; ControlsWithAccessibleNamesExample . overrideButton . setToolTipText ( "Button<seq2seq4repair_space>ToolTip" ) ; ControlsWithAccessibleNamesExample . overrideButton . setData ( "name" , "Button" ) ; ControlsWithAccessibleNamesExample . overrideButton . getAccessible ( ) . addAccessibleListener ( overrideAccessibleAdapter ) ; ControlsWithAccessibleNamesExample . imageButton = new Button ( ControlsWithAccessibleNamesExample . shell , SWT . PUSH ) ; ControlsWithAccessibleNamesExample . imageButton . setImage ( ControlsWithAccessibleNamesExample . image ) ; ControlsWithAccessibleNamesExample . imageButton . setToolTipText ( "Image<seq2seq4repair_space>Button<seq2seq4repair_space>ToolTip" ) ; ControlsWithAccessibleNamesExample . overrideImageButton = new Button ( ControlsWithAccessibleNamesExample . shell , SWT . PUSH ) ; ControlsWithAccessibleNamesExample . overrideImageButton . setImage ( ControlsWithAccessibleNamesExample . image ) ; ControlsWithAccessibleNamesExample . overrideImageButton . setToolTipText ( "Image<seq2seq4repair_space>Button<seq2seq4repair_space>ToolTip" ) ; ControlsWithAccessibleNamesExample . overrideImageButton . setData ( "name" , "Image<seq2seq4repair_space>Button" ) ; ControlsWithAccessibleNamesExample . overrideImageButton . getAccessible ( ) . addAccessibleListener ( overrideAccessibleAdapter ) ; ControlsWithAccessibleNamesExample . combo = new Combo ( ControlsWithAccessibleNamesExample . shell , SWT . BORDER ) ; for ( int i = 0 ; i < 5 ; i ++ ) { ControlsWithAccessibleNamesExample . combo . add ( ( "item" + i ) ) ; } ControlsWithAccessibleNamesExample . combo . setText ( "Combo" ) ; ControlsWithAccessibleNamesExample . combo . setToolTipText ( "Combo<seq2seq4repair_space>ToolTip" ) ; ControlsWithAccessibleNamesExample . overrideCombo = new Combo ( ControlsWithAccessibleNamesExample . shell , SWT . BORDER ) ; for ( int i = 0 ;

Fix:
ControlsWithAccessibleNamesExample . image = new Image ( ControlsWithAccessibleNamesExample . display , ControlsWithAccessibleNamesExample . class . getResourceAsStream ( "run_wiz.gif" ) ) ;