Program: 148831
Project: 148831
Buggy source:
public ElementComposite(Composite parent,final List customTypes,final List builtInTypes,boolean encloseTextField){
  GridLayout layout=(GridLayout)parent.getLayout();
  layout.numColumns=2;
  layout.makeColumnsEqualWidth=false;
  Group radioGroup=new Group(parent,SWT.SHADOW_NONE);
  radioGroup.setText(encloseTextField ? "String_Node_Str" : "String_Node_Str");
  radioGroup.setLayoutData(new GridData(SWT.FILL,SWT.FILL,false,true,2,1));
  radioGroup.setLayout(new GridLayout(1,false));
  customButton=new Button(radioGroup,SWT.RADIO);
  customButton.setText("String_Node_Str");
  customButton.setLayoutData(new GridData(SWT.FILL,SWT.FILL,false,true,1,1));
  builtInButton=new Button(radioGroup,SWT.RADIO);
  builtInButton.setText("String_Node_Str");
  builtInButton.setLayoutData(new GridData(SWT.FILL,SWT.FILL,false,true,1,1));
  GridData gd=new GridData(SWT.FILL,SWT.FILL,true,true,2,1);
  tipLabel=new Label(parent,SWT.NONE);
  tipLabel.setLayoutData(gd);
  gd.widthHint=250;
  if (encloseTextField) {
    Composite cr=new Composite(radioGroup,SWT.NONE);
    cr.setLayoutData(new GridData(SWT.LEFT,SWT.FILL,false,true,2,1));
    cr.setLayout(new GridLayout(2,false));
    serverLabel=new Label(cr,SWT.NONE);
    serverLabel.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,1,1));
    serverLabel.setText("String_Node_Str");
    typeCombo=new CCombo(cr,SWT.BORDER);
    typeCombo.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,1,1));
  }
 else {
    serverLabel=new Label(parent,SWT.NONE);
    serverLabel.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,1,1));
    serverLabel.setText("String_Node_Str");
    typeCombo=new CCombo(parent,SWT.BORDER);
    typeCombo.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,1,1));
  }
  builtInButton.setSelection(true);
  typeCombo.setEditable(false);
  customButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent event){
      if (customButton.getSelection()) {
        typeCombo.removeAll();
        Set<String> alltypes=new HashSet<String>();
        Set<String> uuidtypes=EUUIDCustomType.allTypes();
        alltypes.addAll(uuidtypes);
        typeCombo.setItems(alltypes.toArray(new String[alltypes.size()]));
        for (Iterator iter=customTypes.iterator(); iter.hasNext(); ) {
          String name=(String)iter.next();
          typeCombo.add(name);
        }
        typeCombo.indexOf("String_Node_Str");
        typeCombo.setEditable(true);
        tipLabel.setText("String_Node_Str");
      }
    }
  }
);
  builtInButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent event){
      if (builtInButton.getSelection()) {
        typeCombo.removeAll();
        for (Iterator iter=builtInTypes.iterator(); iter.hasNext(); ) {
          String name=(String)iter.next();
          typeCombo.add(name);
        }
        typeCombo.select(0);
        typeCombo.setEditable(false);
        tipLabel.setText("String_Node_Str");
      }
    }
  }
);
  for (Iterator iter=builtInTypes.iterator(); iter.hasNext(); ) {
    String name=(String)iter.next();
    typeCombo.add(name);
  }
  typeCombo.select(0);
  container=parent;
}

Fixed version (ground truth):
public ElementComposite(Composite parent,final List customTypes,final List builtInTypes,boolean encloseTextField){
  GridLayout layout=(GridLayout)parent.getLayout();
  layout.numColumns=2;
  layout.makeColumnsEqualWidth=false;
  Group radioGroup=new Group(parent,SWT.SHADOW_NONE);
  radioGroup.setText(encloseTextField ? "String_Node_Str" : "String_Node_Str");
  radioGroup.setLayoutData(new GridData(SWT.FILL,SWT.FILL,false,true,2,1));
  radioGroup.setLayout(new GridLayout(1,false));
  customButton=new Button(radioGroup,SWT.RADIO);
  customButton.setText("String_Node_Str");
  customButton.setLayoutData(new GridData(SWT.FILL,SWT.FILL,false,true,1,1));
  builtInButton=new Button(radioGroup,SWT.RADIO);
  builtInButton.setText("String_Node_Str");
  builtInButton.setLayoutData(new GridData(SWT.FILL,SWT.FILL,false,true,1,1));
  GridData gd=new GridData(SWT.FILL,SWT.FILL,true,true,2,1);
  tipLabel=new Label(parent,SWT.NONE);
  tipLabel.setLayoutData(gd);
  gd.widthHint=250;
  if (encloseTextField) {
    Composite cr=new Composite(radioGroup,SWT.NONE);
    cr.setLayoutData(new GridData(SWT.LEFT,SWT.FILL,false,true,2,1));
    cr.setLayout(new GridLayout(2,false));
    serverLabel=new Label(cr,SWT.NONE);
    serverLabel.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,1,1));
    serverLabel.setText("String_Node_Str");
    typeCombo=new CCombo(cr,SWT.BORDER);
    typeCombo.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,1,1));
  }
 else {
    serverLabel=new Label(parent,SWT.NONE);
    serverLabel.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,1,1));
    serverLabel.setText("String_Node_Str");
    typeCombo=new CCombo(parent,SWT.BORDER);
    typeCombo.setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true,1,1));
  }
  builtInButton.setSelection(true);
  typeCombo.setEditable(false);
  customButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent event){
      if (customButton.getSelection()) {
        typeCombo.removeAll();
        Set<String> alltypes=new HashSet<String>();
        Set<String> uuidtypes=EUUIDCustomType.allTypes();
        alltypes.addAll(uuidtypes);
        typeCombo.setItems(alltypes.toArray(new String[alltypes.size()]));
        for (Iterator iter=customTypes.iterator(); iter.hasNext(); ) {
          String name=(String)iter.next();
          if (!uuidtypes.contains(name))           typeCombo.add(name);
        }
        typeCombo.indexOf("String_Node_Str");
        typeCombo.setEditable(true);
        tipLabel.setText("String_Node_Str");
      }
    }
  }
);
  builtInButton.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent event){
      if (builtInButton.getSelection()) {
        typeCombo.removeAll();
        for (Iterator iter=builtInTypes.iterator(); iter.hasNext(); ) {
          String name=(String)iter.next();
          typeCombo.add(name);
        }
        typeCombo.select(0);
        typeCombo.setEditable(false);
        tipLabel.setText("String_Node_Str");
      }
    }
  }
);
  for (Iterator iter=builtInTypes.iterator(); iter.hasNext(); ) {
    String name=(String)iter.next();
    typeCombo.add(name);
  }
  typeCombo.select(0);
  container=parent;
}