Date, as a requested object type in deserializeToObject, results in a String being returned, which is then cast to a Date, resulting in a class cast exception. The method providing the actual class to deserialize, getTypeForDeserialization, returns Object as target.
Date, as a requested object type in
deserializeToObject
, results in a String being returned, which is then cast to a Date, resulting in a class cast exception. The method providing the actual class to deserialize,getTypeForDeserialization
, returns Object as target.