Program: 176613
Project: 176613
Buggy source:
private Object getFieldValueViaCQL(Object thriftColumnValue,Attribute attribute){
  PropertyAccessor<?> accessor=PropertyAccessorFactory.getPropertyAccessor(((AbstractAttribute)attribute).getBindableJavaType());
  Object objValue;
  try {
    if (((AbstractAttribute)attribute).getBindableJavaType().isAssignableFrom(String.class) || ((AbstractAttribute)attribute).getBindableJavaType().isAssignableFrom(char.class) || ((AbstractAttribute)attribute).getBindableJavaType().isAssignableFrom(Character.class)) {
      objValue=accessor.fromString(((AbstractAttribute)attribute).getBindableJavaType(),new String((byte[])thriftColumnValue));
      return objValue;
    }
 else     if (((AbstractAttribute)attribute).getBindableJavaType().isAssignableFrom(short.class)) {
      IntegerAccessor intAccessor=new IntegerAccessor();
      Integer value=intAccessor.fromBytes(short.class,(byte[])thriftColumnValue);
      objValue=accessor.fromString(((AbstractAttribute)attribute).getBindableJavaType(),String.valueOf(value));
      return objValue;
    }
 else     if (((AbstractAttribute)attribute).getBindableJavaType().isAssignableFrom(byte.class)) {
      IntegerAccessor intAccessor=new IntegerAccessor();
      Integer value=intAccessor.fromBytes(byte.class,(byte[])thriftColumnValue);
      objValue=accessor.fromString(((AbstractAttribute)attribute).getBindableJavaType(),String.valueOf(value));
      return objValue;
    }
 else {
      objValue=accessor.fromBytes(((AbstractAttribute)attribute).getBindableJavaType(),(byte[])thriftColumnValue);
      return objValue;
    }
  }
 catch (  PropertyAccessException pae) {
    log.warn(pae.getMessage());
  }
  return null;
}

Fixed version (ground truth):
private Object getFieldValueViaCQL(Object thriftColumnValue,Attribute attribute){
  PropertyAccessor<?> accessor=PropertyAccessorFactory.getPropertyAccessor((Field)attribute.getJavaMember());
  Object objValue;
  try {
    if (((AbstractAttribute)attribute).getBindableJavaType().isAssignableFrom(String.class) || ((AbstractAttribute)attribute).getBindableJavaType().isAssignableFrom(char.class) || ((AbstractAttribute)attribute).getBindableJavaType().isAssignableFrom(Character.class)) {
      objValue=accessor.fromString(((AbstractAttribute)attribute).getBindableJavaType(),new String((byte[])thriftColumnValue));
      return objValue;
    }
 else     if (((AbstractAttribute)attribute).getBindableJavaType().isAssignableFrom(short.class)) {
      IntegerAccessor intAccessor=new IntegerAccessor();
      Integer value=intAccessor.fromBytes(short.class,(byte[])thriftColumnValue);
      objValue=accessor.fromString(((AbstractAttribute)attribute).getBindableJavaType(),String.valueOf(value));
      return objValue;
    }
 else     if (((AbstractAttribute)attribute).getBindableJavaType().isAssignableFrom(byte.class)) {
      IntegerAccessor intAccessor=new IntegerAccessor();
      Integer value=intAccessor.fromBytes(byte.class,(byte[])thriftColumnValue);
      objValue=accessor.fromString(((AbstractAttribute)attribute).getBindableJavaType(),String.valueOf(value));
      return objValue;
    }
 else {
      objValue=accessor.fromBytes(((AbstractAttribute)attribute).getBindableJavaType(),(byte[])thriftColumnValue);
      return objValue;
    }
  }
 catch (  PropertyAccessException pae) {
    log.warn(pae.getMessage());
  }
  return null;
}