Program: 76465
Project: 76465
Buggy source:
private void setParameterValue(String paramName,int paramIndex,Object paramValue) throws DataException {
  final String methodName="String_Node_Str";
  try {
    if (paramValue == null) {
      setNull(paramName,paramIndex);
      return;
    }
    if (paramValue instanceof Integer) {
      int i=((Integer)paramValue).intValue();
      setInt(paramName,paramIndex,i);
      return;
    }
    if (paramValue instanceof Double) {
      double d=((Double)paramValue).doubleValue();
      setDouble(paramName,paramIndex,d);
      return;
    }
    if (paramValue instanceof String) {
      String string=(String)paramValue;
      setString(paramName,paramIndex,string);
      return;
    }
    if (paramValue instanceof BigDecimal) {
      BigDecimal decimal=(BigDecimal)paramValue;
      setBigDecimal(paramName,paramIndex,decimal);
      return;
    }
    if (paramValue instanceof Time) {
      Time time=(Time)paramValue;
      setTime(paramName,paramIndex,time);
      return;
    }
    if (paramValue instanceof Timestamp) {
      Timestamp timestamp=(Timestamp)paramValue;
      setTimestamp(paramName,paramIndex,timestamp);
      return;
    }
    if (paramValue instanceof java.util.Date) {
      java.util.Date date=(java.util.Date)paramValue;
      Date sqlDate=new Date(date.getTime());
      setDate(paramName,paramIndex,sqlDate);
      return;
    }
    if (paramValue instanceof Boolean) {
      boolean val=((Boolean)paramValue).booleanValue();
      setBoolean(paramName,paramIndex,val);
      return;
    }
  }
 catch (  RuntimeException ex) {
    retrySetParameterValue(paramName,paramIndex,paramValue,ex);
    return;
  }
catch (  DataException ex) {
    retrySetParameterValue(paramName,paramIndex,paramValue,ex);
    return;
  }
  sm_logger.logp(Level.SEVERE,sm_className,methodName,"String_Node_Str");
  throw new DataException(ResourceConstants.UNSUPPORTED_PARAMETER_VALUE_TYPE,new Object[]{paramValue.getClass()});
}

Fixed version (ground truth):
private void setParameterValue(String paramName,int paramIndex,Object paramValue) throws DataException {
  final String methodName="String_Node_Str";
  try {
    if (paramValue == null) {
      setNull(paramName,paramIndex);
      return;
    }
    if (paramValue instanceof Integer) {
      int i=((Integer)paramValue).intValue();
      setInt(paramName,paramIndex,i);
      return;
    }
    if (paramValue instanceof Double) {
      double d=((Double)paramValue).doubleValue();
      setDouble(paramName,paramIndex,d);
      return;
    }
    if (paramValue instanceof String) {
      String string=(String)paramValue;
      setString(paramName,paramIndex,string);
      return;
    }
    if (paramValue instanceof BigDecimal) {
      BigDecimal decimal=(BigDecimal)paramValue;
      setBigDecimal(paramName,paramIndex,decimal);
      return;
    }
    if (paramValue instanceof Time) {
      Time time=(Time)paramValue;
      setTime(paramName,paramIndex,time);
      return;
    }
    if (paramValue instanceof Timestamp) {
      Timestamp timestamp=(Timestamp)paramValue;
      setTimestamp(paramName,paramIndex,timestamp);
      return;
    }
    if (paramValue instanceof java.sql.Date) {
      java.util.Date date=(java.util.Date)paramValue;
      Date sqlDate=new Date(date.getTime());
      setDate(paramName,paramIndex,sqlDate);
      return;
    }
    if (paramValue instanceof java.util.Date) {
      Timestamp timestamp=(Timestamp)paramValue;
      setTimestamp(paramName,paramIndex,timestamp);
      return;
    }
    if (paramValue instanceof Boolean) {
      boolean val=((Boolean)paramValue).booleanValue();
      setBoolean(paramName,paramIndex,val);
      return;
    }
  }
 catch (  RuntimeException ex) {
    retrySetParameterValue(paramName,paramIndex,paramValue,ex);
    return;
  }
catch (  DataException ex) {
    retrySetParameterValue(paramName,paramIndex,paramValue,ex);
    return;
  }
  sm_logger.logp(Level.SEVERE,sm_className,methodName,"String_Node_Str");
  throw new DataException(ResourceConstants.UNSUPPORTED_PARAMETER_VALUE_TYPE,new Object[]{paramValue.getClass()});
}