JacksonXmlAnnotationIntrospector.findNamespace()
should properly merge namespace information
#637
Labels
2.17
Issues planned at earliest for 2.17
(note: offshoot of #628)
Looks like method
findNamepace()
inJacksonXmlAnnotationIntrospector
is considering both@JsonProperty
and@JacksonXmlNamespace
(latter having precedence) but does not support case like so:in which
@JacksonXmlProperty
does not define namespace (that is, is left as "", empty String).In such case it should then return
namespace
value of@JsonProperty
instead.Ideally in future we could simply use methods from
AnnotationIntrospection
--findNameForSerialization()
andfindNameForDeserializaiton
-- which also expose "namespace", but on short term let's handle merging better.The text was updated successfully, but these errors were encountered: