-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jackson 2.12.3 and later fails to collapse XML list using @JsonAlias #721
Comments
@cowtowncoder Any ideas if this should be possible somehow in jackson 2.12.3+? I'm not familiar with how this is supposed to work in newer versions. |
From little reading this does not seem like a reliable way to work around problems, i.e. might appear to work by accident more than intentionally. But as usual, one important part in de-tangling problems is trying to figure out what part is due to Kotlin (annotations being associated with accessors as needed), and which XML format module (and possibly even jackson-databind occasionally). |
As described in this blog post it has been possible to deserialize this:
... into a collaped list like this:
This worked until jackson 2.12.2. In 2.12.3 and onwards (including 2.16.0-rc1) the inner values of LedgerActivityDetail are
null
Here's a test project: https://github.com/henrik242/jackson-xml-problem/blob/list-wrappers/src/test/kotlin/jackson/xml/ListWrappersTest.kt
The text was updated successfully, but these errors were encountered: