Support naive deserialization of Serializable
values as "untyped", same as java.lang.Object
#2115
Milestone
Serializable
values as "untyped", same as java.lang.Object
#2115
Currently, Jackson is willing to deserialize JSON into a target of type
Object
as simple Java types--String
,Integer
,Map
, and such. This means that I can successfully deserialize a target property ofwith the results being objects of basic types. So far so good.
However, if I instead I use
Serializable
as the generic bound, Jackson complains thatWhile in the case of general type resolution I understand the rationale for what's going on here, in practice every single type that Jackson will produce when faced with a deserialization into
Object
isSerializable
, and it should treat a target ofSerializable
identically to a target ofObject
.I am using 2.8.11.2.
The text was updated successfully, but these errors were encountered: