Program: 49760
Project: 49760
Buggy source:
public static Object getRealObject(Object type,String value){
  Object result=null;
  if (type instanceof Boolean) {
    result="String_Node_Str".equalsIgnoreCase(value) ? true : false;
  }
 else   if (type instanceof Integer) {
    result=Integer.valueOf(value);
  }
 else   if (type instanceof Long) {
    result=Long.valueOf(value);
  }
 else   if (type instanceof Double) {
    result=Double.valueOf(value);
  }
 else   if (type instanceof Float) {
    result=Float.valueOf(value);
  }
 else   if (type instanceof Byte) {
    result=Byte.valueOf(value);
  }
 else   if (type instanceof Timestamp) {
    try {
      result=new Timestamp(timestampFormat.parse(value).getTime());
    }
 catch (    ParseException e) {
      e.printStackTrace();
    }
  }
 else   if (type instanceof java.sql.Date) {
    try {
      result=sqlDateFormat.parse(value);
    }
 catch (    ParseException e) {
      e.printStackTrace();
    }
  }
 else   if (type instanceof Date) {
    try {
      result=dateFormat.parse(value);
    }
 catch (    ParseException e) {
      e.printStackTrace();
    }
  }
 else {
    throw new RuntimeException("String_Node_Str" + type + "String_Node_Str"+ value);
  }
  return result;
}

Fixed version (ground truth):
public static Object getRealObject(Object type,Object value){
  String valueString=String.valueOf(value);
  Object result=null;
  if (type instanceof Boolean) {
    result="String_Node_Str".equalsIgnoreCase(valueString) ? true : false;
  }
 else   if (type instanceof Integer) {
    if (value instanceof Number) {
      result=((Number)value).intValue();
    }
 else {
      result=Integer.valueOf(valueString);
    }
  }
 else   if (type instanceof Long) {
    if (value instanceof Number) {
      result=((Number)value).longValue();
    }
 else {
      result=Long.valueOf(valueString);
    }
  }
 else   if (type instanceof Double) {
    if (value instanceof Number) {
      result=((Number)value).doubleValue();
    }
 else {
      result=Double.valueOf(valueString);
    }
  }
 else   if (type instanceof Float) {
    if (value instanceof Number) {
      result=((Number)value).floatValue();
    }
 else {
      result=Float.valueOf(valueString);
    }
  }
 else   if (type instanceof Byte) {
    if (value instanceof Number) {
      result=((Number)value).byteValue();
    }
 else {
      result=Byte.valueOf(valueString);
    }
  }
 else   if (type instanceof Timestamp) {
    if (value instanceof Date) {
      result=(Date)value;
    }
 else {
      try {
        result=new Timestamp(getTimestampFormat().parse(valueString).getTime());
      }
 catch (      ParseException e) {
        Util.throwUncheckedException(e);
      }
    }
  }
 else   if (type instanceof java.sql.Date) {
    if (value instanceof Date) {
      result=(Date)value;
    }
 else {
      try {
        result=getSqlDateFormat().parse(valueString);
      }
 catch (      ParseException e) {
        Util.throwUncheckedException(e);
      }
    }
  }
 else   if (type instanceof Date) {
    if (value instanceof Date) {
      result=(Date)value;
    }
 else {
      try {
        result=getUtilDateFormat().parse(valueString);
      }
 catch (      ParseException e) {
        Util.throwUncheckedException(e);
      }
    }
  }
 else {
    throw new RuntimeException("String_Node_Str" + type + "String_Node_Str"+ valueString);
  }
  return result;
}