-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
With FasterXML/jackson-annotations#315 a new general Jackson annotation, @JsonDeserializeAs was added: it needs to be supported by databind.
This means, basically, that following 2 cases should be equivalent
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(as = ValueImpl.class)
public class Value {
}
@com.fasterxml.jackson.annotation.JsonDeserializeAs(value = ValueImpl.class)
public class Value {
}
So com.fasterxml.jackson.annotation.JsonDeserializeAs is essentially an alias for older com.fasterxml.jackson.databind.annotation.JsonDeserialize.
Support is via JacksonAnnotationIntrospector class.
New tests need to be added to cover this, possibly copying existing ones for older annotation (@JsonDeserialize).