Buggy code:
public class Snippet223 { public static void main ( String [ ] args ) { Display display = new Display ( ) ; Shell shell = new Shell ( display ) ; shell . setLayout ( new FillLayout ( ) ) ; shell . setText ( "ExpandBar<seq2seq4repair_space>Example" ) ; ExpandBar bar = new ExpandBar ( shell , SWT . V_SCROLL ) ; <START_BUG> Image image = new Image ( display , Snippet223 . class . getResourceAsStream ( "eclipse.png" ) ) ; <END_BUG> Composite composite = new Composite ( bar , SWT . NONE ) ; GridLayout layout = new GridLayout ( ) ; layout . marginLeft = layout . marginTop = layout . marginRight = layout . marginBottom = 10 ; layout . verticalSpacing = 10 ; composite . setLayout ( layout ) ; Button button = new Button ( composite , SWT . PUSH ) ; button . setText ( "SWT.PUSH" ) ; button = new Button ( composite , SWT . RADIO ) ; button . setText ( "SWT.RADIO" ) ; button = new Button ( composite , SWT . CHECK ) ; button . setText ( "SWT.CHECK" ) ; button = new Button ( composite , SWT . TOGGLE ) ; button . setText ( "SWT.TOGGLE" ) ; ExpandItem item0 = new ExpandItem ( bar , SWT . NONE , 0 ) ; item0 . setText ( "What<seq2seq4repair_space>is<seq2seq4repair_space>your<seq2seq4repair_space>favorite<seq2seq4repair_space>button" ) ; item0 . setHeight ( composite . computeSize ( DEFAULT , DEFAULT ) . y ) ; item0 . setControl ( composite ) ; item0 . setImage ( image ) ; composite = new Composite ( bar , SWT . NONE ) ; layout = new GridLayout ( 2 , false ) ; layout . marginLeft = layout . marginTop = layout . marginRight = layout . marginBottom = 10 ; layout . verticalSpacing = 10 ; composite . setLayout ( layout ) ; Label label = new Label ( composite , SWT . NONE ) ; label . setImage ( display . getSystemImage ( ICON_ERROR ) ) ; label = new Label ( composite , SWT . NONE ) ; label . setText ( "SWT.ICON_ERROR" ) ; label = new Label ( composite , SWT . NONE ) ; label . setImage ( display . getSystemImage ( ICON_INFORMATION ) ) ; label = new Label ( composite , SWT . NONE ) ; label . setText ( "SWT.ICON_INFORMATION" ) ; label = new Label ( composite , SWT . NONE ) ; label . setImage ( display . getSystemImage ( ICON_WARNING ) ) ; label = new Label ( composite , SWT . NONE ) ; label . setText ( "SWT.ICON_WARNING" ) ; label = new Label ( composite , SWT . NONE ) ; label . setImage ( display . getSystemImage ( ICON_QUESTION ) ) ; label = new Label ( composite , SWT . NONE ) ; label . setText ( "SWT.ICON_QUESTION" ) ; ExpandItem item1 = new ExpandItem ( bar , SWT . NONE , 1 ) ; item1 . setText ( "What<seq2seq4repair_space>is<seq2seq4repair_space>your<seq2seq4repair_space>favorite<seq2seq4repair_space>icon" ) ; item1 . setHeight ( composite . computeSize ( DEFAULT , DEFAULT ) . y ) ; item1 . setControl ( composite ) ; item1 . setImage ( image ) ; composite = new Composite ( bar , SWT . NONE ) ; layout = new GridLayout ( 2 , true ) ; layout . marginLeft = layout . marginTop = layout . marginRight = layout . marginBottom = 10 ; layout . verticalSpacing = 10 ; composite . setLayout ( layout ) ; label = new Label ( composite , SWT . NONE ) ; label . setText ( "Scale" ) ; new Scale ( composite , SWT . NONE ) ; label = new Label ( composite , SWT . NONE ) ; label . setText ( "Spinner" ) ; new Spinner ( composite , SWT . BORDER ) ; label = new Label ( composite , SWT . NONE ) ; label . setText ( "Slider" ) ; new Slider ( composite , SWT . NONE ) ; ExpandItem item2 = new ExpandItem ( bar , SWT . NONE , 2 ) ; item2 . setText ( "What<seq2seq4repair_space>is<seq2seq4repair_space>your<seq2seq4repair_space>favorite<seq2seq4repair_space>range<seq2seq4repair_space>widget" ) ; item2 . setHeight ( composite . computeSize ( DEFAULT , DEFAULT ) . y ) ; item2 . setControl ( composite ) ; item2 . setImage ( image ) ; item1 . setExpanded ( true ) ; bar . setSpacing ( 8 ) ; shell . setSize ( 400 , 350 ) ; shell . open ( ) ; while ( ! ( shell . isDisposed ( ) ) ) { if ( ! ( display . readAndDispatch ( ) ) ) { display . sleep ( ) ; } } image . dispose ( ) ; display . dispose ( ) ; } }

Fix:
Image image = display . getSystemImage ( ICON_QUESTION ) ;