Program: 68847
Project: 68847
Buggy source:
/** 
 * Print itself on the print stream.
 */
public void logResult(Writer log){
  String indentationString=getTestCollection().getIndentationString();
  try {
    if (didSetupFail()) {
      log.write(indentationString + org.eclipse.persistence.internal.helper.Helper.cr() + "String_Node_Str"+ org.eclipse.persistence.internal.helper.Helper.cr()+ getSetupException()+ org.eclipse.persistence.internal.helper.Helper.cr());
      PrintWriter printWriter=new PrintWriter(log);
      getSetupException().printStackTrace(printWriter);
      log.flush();
    }
 else {
      if ((getErrors() > 0) || (getFatalErrors() > 0) || (getProblems() > 0)) {
        log.write(indentationString + "String_Node_Str" + org.eclipse.persistence.internal.helper.Helper.cr());
      }
      log.write(indentationString + "String_Node_Str" + getWarnings()+ org.eclipse.persistence.internal.helper.Helper.cr());
      log.write(indentationString + "String_Node_Str" + getProblems()+ org.eclipse.persistence.internal.helper.Helper.cr());
      log.write(indentationString + "String_Node_Str" + getErrors()+ org.eclipse.persistence.internal.helper.Helper.cr());
      log.write(indentationString + "String_Node_Str" + getFatalErrors()+ org.eclipse.persistence.internal.helper.Helper.cr());
      log.write(indentationString + "String_Node_Str" + getPassed()+ org.eclipse.persistence.internal.helper.Helper.cr());
      log.write(indentationString + "String_Node_Str" + getSetupFailures()+ org.eclipse.persistence.internal.helper.Helper.cr());
      log.write(indentationString + "String_Node_Str" + getTotalTime()+ org.eclipse.persistence.internal.helper.Helper.cr());
      log.write(indentationString + "String_Node_Str" + getTotalTests()+ org.eclipse.persistence.internal.helper.Helper.cr()+ org.eclipse.persistence.internal.helper.Helper.cr());
      log.flush();
    }
  }
 catch (  IOException exception) {
  }
}

Fixed version (ground truth):
/** 
 * Print itself on the print stream.
 */
public void logResult(Writer log){
  String indentationString=getTestCollection().getIndentationString();
  try {
    if (didSetupFail()) {
      log.write(indentationString + org.eclipse.persistence.internal.helper.Helper.cr() + "String_Node_Str"+ org.eclipse.persistence.internal.helper.Helper.cr()+ getSetupException()+ org.eclipse.persistence.internal.helper.Helper.cr());
      PrintWriter printWriter=new PrintWriter(log);
      getSetupException().printStackTrace(printWriter);
      log.flush();
    }
 else     if (didSetupWarn()) {
      log.write(indentationString + "String_Node_Str" + org.eclipse.persistence.internal.helper.Helper.cr());
      ((TestWarningException)getSetupException()).setIndentationString(indentationString);
      log.write(getSetupException() + org.eclipse.persistence.internal.helper.Helper.cr());
      log.flush();
    }
 else {
      if ((getErrors() > 0) || (getFatalErrors() > 0) || (getProblems() > 0)) {
        log.write(indentationString + "String_Node_Str" + org.eclipse.persistence.internal.helper.Helper.cr());
      }
      log.write(indentationString + "String_Node_Str" + getWarnings()+ org.eclipse.persistence.internal.helper.Helper.cr());
      log.write(indentationString + "String_Node_Str" + getProblems()+ org.eclipse.persistence.internal.helper.Helper.cr());
      log.write(indentationString + "String_Node_Str" + getErrors()+ org.eclipse.persistence.internal.helper.Helper.cr());
      log.write(indentationString + "String_Node_Str" + getFatalErrors()+ org.eclipse.persistence.internal.helper.Helper.cr());
      log.write(indentationString + "String_Node_Str" + getPassed()+ org.eclipse.persistence.internal.helper.Helper.cr());
      log.write(indentationString + "String_Node_Str" + getSetupWarnings()+ org.eclipse.persistence.internal.helper.Helper.cr());
      log.write(indentationString + "String_Node_Str" + getSetupFailures()+ org.eclipse.persistence.internal.helper.Helper.cr());
      log.write(indentationString + "String_Node_Str" + getTotalTime()+ org.eclipse.persistence.internal.helper.Helper.cr());
      log.write(indentationString + "String_Node_Str" + getTotalTests()+ org.eclipse.persistence.internal.helper.Helper.cr()+ org.eclipse.persistence.internal.helper.Helper.cr());
      log.flush();
    }
  }
 catch (  IOException exception) {
  }
}