@JsonProperty
and equivalents should merge with AnnotationIntrospectorPair
#4364
Labels
to-evaluate
Issue that has been received but not yet evaluated
Describe your Issue
If a property has multiple naming annotations -- such as standard
@JsonProperty
, and@JacksonXmlProperty
fromjackson-dataformat-xml
-- and there are 2AnnotationIntrospector
s, thenAnnotationIntrospectorPair
should merge parts so that if the Primary introspector has no value (empty String or null), value from secondary should be used, for:so that, for example:
where first annotation has precedence (annotation introspector that handles it is the first introspector configured for
AnnotationIntrospectorPair
) we should have localName and namespace from@JsonProperty
sinceJacksonXmlProperty
defines neither (that is, has defaults of "").Currently this is not the case.
The text was updated successfully, but these errors were encountered: