Program: 66319
Project: 66319
Buggy source:
public void createContent(Composite parent){
  isCreate=getBinding() == null;
  isRef=getBindingHolder().getDataBindingType() == ReportItemHandle.DATABINDING_TYPE_REPORT_ITEM_REF;
  composite=parent;
  ((GridLayout)composite.getLayout()).numColumns=4;
  lbName=new Label(composite,SWT.NONE);
  lbName.setText(NAME);
  GridData gd=new GridData(GridData.FILL_HORIZONTAL);
  gd.horizontalSpan=3;
  gd.widthHint=200;
  if (isRef) {
    cmbName=new Combo(composite,SWT.BORDER | SWT.READ_ONLY);
    cmbName.setLayoutData(gd);
    cmbName.setVisibleItemCount(30);
    cmbName.addSelectionListener(new SelectionAdapter(){
      public void widgetSelected(      SelectionEvent e){
        modifyDialogContent();
        String bindingName=cmbName.getItem(cmbName.getSelectionIndex());
        for (Iterator iterator=getBindingHolder().getDataBindingReference().getColumnBindings().iterator(); iterator.hasNext(); ) {
          ComputedColumnHandle computedColumn=(ComputedColumnHandle)iterator.next();
          if (computedColumn.getName().equals(bindingName)) {
            setBinding(computedColumn);
            initDialog();
            return;
          }
        }
      }
    }
);
  }
 else {
    txtName=new Text(composite,SWT.BORDER);
    txtName.setLayoutData(gd);
    txtName.addModifyListener(new ModifyListener(){
      public void modifyText(      ModifyEvent e){
        modifyDialogContent();
        validate();
      }
    }
);
  }
  lbDisplayNameID=new Label(composite,SWT.NONE);
  lbDisplayNameID.setText(DISPLAY_NAME_ID);
  lbDisplayNameID.addTraverseListener(new TraverseListener(){
    public void keyTraversed(    TraverseEvent e){
      if (e.detail == SWT.TRAVERSE_MNEMONIC && e.doit) {
        e.detail=SWT.TRAVERSE_NONE;
        openKeySelectionDialog();
      }
    }
  }
);
  txtDisplayNameID=new Text(composite,SWT.BORDER | SWT.READ_ONLY);
  txtDisplayNameID.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  btnDisplayNameID=new Button(composite,SWT.NONE);
  btnDisplayNameID.setEnabled(getAvailableResourceUrls() != null && getAvailableResourceUrls().length > 0 ? true : false);
  btnDisplayNameID.setText("String_Node_Str");
  btnDisplayNameID.setToolTipText(Messages.getString("String_Node_Str"));
  btnDisplayNameID.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent event){
      openKeySelectionDialog();
    }
  }
);
  btnRemoveDisplayNameID=new Button(composite,SWT.NONE);
  btnRemoveDisplayNameID.setImage(ReportPlatformUIImages.getImage(ISharedImages.IMG_TOOL_DELETE));
  btnRemoveDisplayNameID.setToolTipText(Messages.getString("String_Node_Str"));
  btnRemoveDisplayNameID.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent event){
      txtDisplayNameID.setText(EMPTY_STRING);
      txtDisplayName.setText(EMPTY_STRING);
      modifyDialogContent();
      updateRemoveBtnState();
    }
  }
);
  new Label(composite,SWT.NONE).setText(DISPLAY_NAME);
  txtDisplayName=new Text(composite,SWT.BORDER);
  txtDisplayName.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      modifyDialogContent();
    }
  }
);
  txtDisplayName.setLayoutData(gd);
  new Label(composite,SWT.NONE).setText(DATA_TYPE);
  cmbType=new Combo(composite,SWT.BORDER | SWT.READ_ONLY);
  cmbType.setLayoutData(gd);
  cmbType.setVisibleItemCount(30);
  cmbType.addSelectionListener(new SelectionListener(){
    public void widgetDefaultSelected(    SelectionEvent arg0){
      validate();
    }
    public void widgetSelected(    SelectionEvent arg0){
      modifyDialogContent();
      validate();
    }
  }
);
  Label allowExportLabel=new Label(composite,SWT.NONE);
  allowExportLabel.setText(ALLOW_EXPORT);
  btnAllowExport=new Button(composite,SWT.CHECK);
  btnAllowExport.setSelection(true);
  GridData gd1=new GridData(GridData.FILL_HORIZONTAL);
  gd1.horizontalSpan=3;
  gd1.widthHint=200;
  btnAllowExport.setLayoutData(gd1);
  btnAllowExport.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      modifyDialogContent();
    }
  }
);
  WidgetUtil.setExcludeGridData(allowExportLabel,true);
  WidgetUtil.setExcludeGridData(btnAllowExport,true);
  if (isAggregate()) {
    createAggregateSection(composite);
  }
 else {
    createCommonSection(composite);
  }
  createMessageSection(composite);
  gd=new GridData(GridData.FILL_BOTH);
  composite.setLayoutData(gd);
  setContentSize(composite);
}

Fixed version (ground truth):
public void createContent(Composite parent){
  isCreate=getBinding() == null;
  isRef=getBindingHolder().getDataBindingType() == ReportItemHandle.DATABINDING_TYPE_REPORT_ITEM_REF;
  composite=parent;
  ((GridLayout)composite.getLayout()).numColumns=4;
  lbName=new Label(composite,SWT.NONE);
  lbName.setText(NAME);
  GridData gd=new GridData(GridData.FILL_HORIZONTAL);
  gd.horizontalSpan=3;
  gd.widthHint=200;
  if (isRef) {
    cmbName=new Combo(composite,SWT.BORDER | SWT.READ_ONLY);
    cmbName.setLayoutData(gd);
    cmbName.setVisibleItemCount(30);
    cmbName.addSelectionListener(new SelectionAdapter(){
      public void widgetSelected(      SelectionEvent e){
        modifyDialogContent();
        String bindingName=cmbName.getItem(cmbName.getSelectionIndex());
        for (Iterator iterator=getBindingHolder().getDataBindingReference().getColumnBindings().iterator(); iterator.hasNext(); ) {
          ComputedColumnHandle computedColumn=(ComputedColumnHandle)iterator.next();
          if (computedColumn.getName().equals(bindingName)) {
            setBinding(computedColumn);
            initDialog();
            return;
          }
        }
      }
    }
);
  }
 else {
    txtName=new Text(composite,SWT.BORDER);
    txtName.setLayoutData(gd);
    txtName.addModifyListener(new ModifyListener(){
      public void modifyText(      ModifyEvent e){
        modifyDialogContent();
        validate();
      }
    }
);
  }
  lbDisplayNameID=new Label(composite,SWT.NONE);
  lbDisplayNameID.setText(DISPLAY_NAME_ID);
  lbDisplayNameID.addTraverseListener(new TraverseListener(){
    public void keyTraversed(    TraverseEvent e){
      if (e.detail == SWT.TRAVERSE_MNEMONIC && e.doit) {
        e.detail=SWT.TRAVERSE_NONE;
        if (btnDisplayNameID.isEnabled()) {
          openKeySelectionDialog();
        }
      }
    }
  }
);
  txtDisplayNameID=new Text(composite,SWT.BORDER | SWT.READ_ONLY);
  txtDisplayNameID.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  btnDisplayNameID=new Button(composite,SWT.NONE);
  btnDisplayNameID.setEnabled(getAvailableResourceUrls() != null && getAvailableResourceUrls().length > 0 ? true : false);
  btnDisplayNameID.setText("String_Node_Str");
  btnDisplayNameID.setToolTipText(Messages.getString("String_Node_Str"));
  btnDisplayNameID.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent event){
      openKeySelectionDialog();
    }
  }
);
  btnRemoveDisplayNameID=new Button(composite,SWT.NONE);
  btnRemoveDisplayNameID.setImage(ReportPlatformUIImages.getImage(ISharedImages.IMG_TOOL_DELETE));
  btnRemoveDisplayNameID.setToolTipText(Messages.getString("String_Node_Str"));
  btnRemoveDisplayNameID.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent event){
      txtDisplayNameID.setText(EMPTY_STRING);
      txtDisplayName.setText(EMPTY_STRING);
      modifyDialogContent();
      updateRemoveBtnState();
    }
  }
);
  new Label(composite,SWT.NONE).setText(DISPLAY_NAME);
  txtDisplayName=new Text(composite,SWT.BORDER);
  txtDisplayName.addModifyListener(new ModifyListener(){
    public void modifyText(    ModifyEvent e){
      modifyDialogContent();
    }
  }
);
  txtDisplayName.setLayoutData(gd);
  new Label(composite,SWT.NONE).setText(DATA_TYPE);
  cmbType=new Combo(composite,SWT.BORDER | SWT.READ_ONLY);
  cmbType.setLayoutData(gd);
  cmbType.setVisibleItemCount(30);
  cmbType.addSelectionListener(new SelectionListener(){
    public void widgetDefaultSelected(    SelectionEvent arg0){
      validate();
    }
    public void widgetSelected(    SelectionEvent arg0){
      modifyDialogContent();
      validate();
    }
  }
);
  Label allowExportLabel=new Label(composite,SWT.NONE);
  allowExportLabel.setText(ALLOW_EXPORT);
  btnAllowExport=new Button(composite,SWT.CHECK);
  btnAllowExport.setSelection(true);
  GridData gd1=new GridData(GridData.FILL_HORIZONTAL);
  gd1.horizontalSpan=3;
  gd1.widthHint=200;
  btnAllowExport.setLayoutData(gd1);
  btnAllowExport.addSelectionListener(new SelectionAdapter(){
    public void widgetSelected(    SelectionEvent e){
      modifyDialogContent();
    }
  }
);
  WidgetUtil.setExcludeGridData(allowExportLabel,true);
  WidgetUtil.setExcludeGridData(btnAllowExport,true);
  if (isAggregate()) {
    createAggregateSection(composite);
  }
 else {
    createCommonSection(composite);
  }
  createMessageSection(composite);
  gd=new GridData(GridData.FILL_BOTH);
  composite.setLayoutData(gd);
  setContentSize(composite);
}