Program: 79541
Project: 79541
Buggy source:
/** 
 * This method is useful for callers to see the status of a task. Also for developers to see best practices for examining status fields etc
 * @param verbosity 0 = brief, 1 = one-line with some detail, 2 = lots of detail
 */
protected String getStatusString(int verbosity){
  String rv;
  if (submitTimeUtc <= 0)   rv="String_Node_Str";
 else   if (!isCancelled() && startTimeUtc <= 0) {
    rv="String_Node_Str";
    if (verbosity > 0) {
      long elapsed=System.currentTimeMillis() - submitTimeUtc;
      rv+="String_Node_Str" + Time.makeTimeStringRoundedSince(elapsed) + "String_Node_Str";
    }
    if (verbosity >= 2 && getExtraStatusText() != null) {
      rv+="String_Node_Str" + getExtraStatusText();
    }
  }
 else   if (isDone()) {
    long elapsed=endTimeUtc - submitTimeUtc;
    String duration=Time.makeTimeStringRounded(elapsed);
    rv="String_Node_Str";
    if (isCancelled()) {
      rv+="String_Node_Str";
      if (verbosity >= 1)       rv+="String_Node_Str" + duration;
      if (verbosity >= 2 && getExtraStatusText() != null) {
        rv+="String_Node_Str" + getExtraStatusText();
      }
    }
 else     if (isError()) {
      rv+="String_Node_Str";
      if (verbosity >= 1) {
        rv+="String_Node_Str" + duration;
        Object error;
        try {
          String rvx="String_Node_Str" + get();
          error="String_Node_Str" + rvx;
        }
 catch (        Throwable tt) {
          error=tt;
        }
        if (verbosity >= 2 && getExtraStatusText() != null) {
          rv+="String_Node_Str" + getExtraStatusText();
        }
        while (error instanceof ExecutionException)         error=((Throwable)error).getCause();
        String errorMessage=null;
        if (error instanceof Throwable)         errorMessage=((Throwable)error).getMessage();
        if (errorMessage == null || errorMessage.isEmpty())         errorMessage="String_Node_Str" + error;
        if (verbosity >= 1)         rv+="String_Node_Str" + errorMessage;
        if (verbosity >= 2) {
          StringWriter sw=new StringWriter();
          ((Throwable)error).printStackTrace(new PrintWriter(sw));
          rv+="String_Node_Str" + sw.getBuffer();
        }
      }
    }
 else {
      rv+="String_Node_Str";
      if (verbosity >= 1) {
        if (verbosity == 1) {
          try {
            Object v=get();
            rv+="String_Node_Str" + (v == null ? "String_Node_Str" : "String_Node_Str" + v);
          }
 catch (          Exception e) {
            rv+="String_Node_Str" + e + "String_Node_Str";
          }
        }
 else {
          rv+="String_Node_Str" + duration;
          try {
            Object v=get();
            rv+="String_Node_Str" + (v == null ? "String_Node_Str" : "String_Node_Str" + v);
          }
 catch (          Exception e) {
            rv+="String_Node_Str" + "String_Node_Str" + e + "String_Node_Str";
          }
          if (verbosity >= 2 && getExtraStatusText() != null) {
            rv+="String_Node_Str" + getExtraStatusText();
          }
        }
      }
    }
  }
 else {
    rv=getActiveTaskStatusString(verbosity);
  }
  return rv;
}

Fixed version (ground truth):
/** 
 * This method is useful for callers to see the status of a task. Also for developers to see best practices for examining status fields etc
 * @param verbosity 0 = brief, 1 = one-line with some detail, 2 = lots of detail
 */
protected String getStatusString(int verbosity){
  String rv;
  if (submitTimeUtc <= 0)   rv="String_Node_Str";
 else   if (!isCancelled() && startTimeUtc <= 0) {
    rv="String_Node_Str";
    if (verbosity > 0) {
      long elapsed=System.currentTimeMillis() - submitTimeUtc;
      rv+="String_Node_Str" + Time.makeTimeStringRoundedSince(elapsed) + "String_Node_Str";
    }
    if (verbosity >= 2 && getExtraStatusText() != null) {
      rv+="String_Node_Str" + getExtraStatusText();
    }
  }
 else   if (isDone()) {
    long elapsed=endTimeUtc - submitTimeUtc;
    String duration=Time.makeTimeStringRounded(elapsed);
    if (isCancelled()) {
      rv="String_Node_Str";
      if (verbosity >= 1)       rv+="String_Node_Str" + duration;
      if (verbosity >= 2 && getExtraStatusText() != null) {
        rv+="String_Node_Str" + getExtraStatusText();
      }
    }
 else     if (isError()) {
      rv="String_Node_Str";
      if (verbosity >= 1) {
        rv+="String_Node_Str" + duration;
        Throwable error=Tasks.getError(this);
        if (verbosity >= 2 && getExtraStatusText() != null) {
          rv+="String_Node_Str" + getExtraStatusText();
        }
        while (error instanceof ExecutionException)         error=error.getCause();
        String errorMessage=Exceptions.collapseText(error);
        if (verbosity == 1)         rv+="String_Node_Str" + abbreviate(errorMessage);
        if (verbosity >= 2) {
          rv+="String_Node_Str" + errorMessage;
          StringWriter sw=new StringWriter();
          ((Throwable)error).printStackTrace(new PrintWriter(sw));
          rv+="String_Node_Str" + sw.getBuffer();
        }
      }
    }
 else {
      rv="String_Node_Str";
      if (verbosity >= 1) {
        if (verbosity == 1) {
          try {
            Object v=get();
            rv+="String_Node_Str" + (v == null ? "String_Node_Str" : "String_Node_Str" + abbreviate(v.toString()));
          }
 catch (          Exception e) {
            rv+="String_Node_Str" + e + "String_Node_Str";
          }
        }
 else {
          rv+="String_Node_Str" + duration;
          try {
            Object v=get();
            rv+="String_Node_Str" + (v == null ? "String_Node_Str" : "String_Node_Str" + v);
          }
 catch (          Exception e) {
            rv+="String_Node_Str" + "String_Node_Str" + e + "String_Node_Str";
          }
          if (verbosity >= 2 && getExtraStatusText() != null) {
            rv+="String_Node_Str" + getExtraStatusText();
          }
        }
      }
    }
  }
 else {
    rv=getActiveTaskStatusString(verbosity);
  }
  return rv;
}