Here is sample pojo:
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Pair<T, V> extends BaseObject implements Map.Entry<T, V> {
private T key;
private V value;
@Override
public V setValue(V value) {
this.value = value;
return value;
}
}
it is serialized as a Map.Entry:
*{"somekey":"value"}*
because we have *isAssignableFrom *check in *BasicSerializerFactory*
https://github.com/FasterXML/jackson-databind/blob/master/src/main/java/com/fasterxml/jackson/databind/ser/BasicSerializerFactory.java#L383
but it's not deserializing properly, because we have eq check in
*BasicDeserializerFactory*
https://github.com/FasterXML/jackson-databind/blob/master/src/main/java/com/fasterxml/jackson/databind/deser/BasicDeserializerFactory.java#L1693
is there any good reason why have different class checks in
*BasicSerializerFactory
*and *BasicDeserializerFactory?*
--
You received this message because you are subscribed to the Google Groups
"jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.