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
deserialized JsonAnySetter field is null #4508
Comments
Since
Could you provide Java-only reproduction to make sure it is |
Right; either this needs to move to But I think there is probably already an issue wrt |
I also ran into this issue, it can be fixed by writing |
Ah, thank u for sharing @kotcrab ! |
Some background. As @kotcrab described above, this is regression caused by annotations module change, the annotation change was meant to be pre-requisite for the databind-module's Allow 'JsonAnySetter' to flow through JsonCreator #562 issue. I started writing PR #4366 to support the databind-module change, but stopped to allow room for Property Introspection Rewrite in #4515. As per solution, either....
|
Search before asking
Describe the bug
I have kotlin data class
and json
Before jackson 2.17.0 the json deserialized into class correctly. any_other_data put to additionalProperties map.
On 2.17.0 version i have additionalProperties == null after the deserialization.
Version Information
2.17.0
Expected behavior
i expected that field annotated with @JsonAnySetter will be filled with all the undeclared fields
The text was updated successfully, but these errors were encountered: