Skip to content

Jackson 2.10.x fails to deserialize xsi:nil with multiple child elements #378

@henrik242

Description

@henrik242

This XML:

<Silly xmlns:a="http://www.w3.org/2001/XMLSchema-instance" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <a:Hey i:nil="true"/>
  <a:Ho>to</a:Ho>
</Silly>

.. fails to properly deserialize in Jackson 2.10.x. Both Hey and Ho are null, while in 2.9.9 they were "" and "to".

See test project at https://github.com/henrik242/jackson-xml-problem/tree/jackson-xml-nil-problem

First reported in #354 (comment) and #358 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions