Program: 17434
Project: 17434
Buggy source:
/** 
 * Get the text display for element
 * @see ILabelProvider#getText(Object)
 */
public String getText(Object element){
  if (element instanceof TagItem) {
    StringBuffer sb=new StringBuffer("String_Node_Str");
    String tname=((TagItem)element).getName();
    sb.append(tname);
    if (hasSpecialNeeds(tname)) {
      String data=((TagItem)element).getItemData();
      data=data.replaceAll("String_Node_Str" + tname,"String_Node_Str");
      data=data.replaceAll("String_Node_Str","String_Node_Str");
      sb.append(data);
    }
 else {
      Set st=syntax.getElementAttributes(tname);
      if (st != null) {
        Iterator i=st.iterator();
        while (i.hasNext()) {
          p=(Parameter)i.next();
          if (p.isRequired()) {
            String aval=((TagItem)element).getAttributeValue(p.getName());
            if (aval != null && aval.length() > 0) {
              sb.append("String_Node_Str" + p.getName() + "String_Node_Str"+ aval);
            }
          }
        }
      }
    }
    return sb.toString();
  }
 else   if (element instanceof CfmlComment) {
    String commentData=((CfmlComment)element).getItemData();
    commentData=commentData.replace('\n',' ');
    commentData=commentData.replaceAll("String_Node_Str","String_Node_Str");
    commentData=commentData.replaceAll("String_Node_Str","String_Node_Str");
    if (commentData.trim().length() > 40) {
      commentData=commentData.trim().substring(0,40) + "String_Node_Str";
    }
    return commentData;
  }
 else   if (element instanceof SimpleNode) {
    if (element instanceof ASTFunctionDeclaration) {
      return getCFScriptFunctionName(element);
    }
  }
  return "String_Node_Str";
}

Fixed version (ground truth):
/** 
 * Get the text display for element
 * @see ILabelProvider#getText(Object)
 */
public String getText(Object element){
  if (element instanceof TagItem) {
    StringBuffer sb=new StringBuffer("String_Node_Str");
    String tname=((TagItem)element).getName();
    sb.append(tname);
    if (hasSpecialNeeds(tname)) {
      String data=((TagItem)element).getItemData();
      data=data.replaceAll("String_Node_Str" + tname,"String_Node_Str");
      data=data.replaceAll("String_Node_Str","String_Node_Str");
      data=data.replaceAll("String_Node_Str","String_Node_Str");
      sb.append(data);
    }
 else {
      Set st=syntax.getElementAttributes(tname);
      if (st != null) {
        Iterator i=st.iterator();
        while (i.hasNext()) {
          p=(Parameter)i.next();
          if (p.isRequired()) {
            String aval=((TagItem)element).getAttributeValue(p.getName());
            if (aval != null && aval.length() > 0) {
              sb.append("String_Node_Str" + p.getName() + "String_Node_Str"+ aval);
            }
          }
        }
      }
    }
    return sb.toString();
  }
 else   if (element instanceof CfmlComment) {
    String commentData=((CfmlComment)element).getItemData();
    commentData=commentData.replace('\n',' ');
    commentData=commentData.replaceAll("String_Node_Str","String_Node_Str");
    commentData=commentData.replaceAll("String_Node_Str","String_Node_Str");
    if (commentData.trim().length() > 40) {
      commentData=commentData.trim().substring(0,40) + "String_Node_Str";
    }
    return commentData;
  }
 else   if (element instanceof SimpleNode) {
    if (element instanceof ASTFunctionDeclaration) {
      return getCFScriptFunctionName(element);
    }
  }
  return "String_Node_Str";
}