Skip to content

@JacksonXmlRootElement does not enforce the local name during deserialization #247

@LeonardMeyer

Description

@LeonardMeyer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    has-failing-testIndicates that there exists a test case (under `failing/`) to reproduce the issuemost-wantedTag to indicate that there is heavy user +1'ing action

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions