jackson-dataformat-xml
jackson-dataformat-xml copied to clipboard
@JacksonXmlRootElement does not enforce the local name during deserialization
I was redirected here from the google group, so I'll just repeat what I said there : the localName attribute of @JacksonXmlRootElement
is not enforced during deserialization. In other words, if I want the input to be
<test>
<inner>1</inner>
</test>
And I get
<ohnoes>
<inner>1</inner>
</ohnoes>
inner will still be deserialized properly. This seems weird to me. Here is a fully reproductible test.
I think this has come up more than once during discussions so will mark as "most-wanted", despite no thumbs-up here.
Also added failing simple test case -- I suspect this must be opt-in Feature
, when added.