BeanDeserializerModifier::updateBuilder()
doesn't work for beans with Creator methods
#4356
Closed
1 task done
Labels
2.18
has-failing-test
Indicates that there exists a test case (under `failing/`) to reproduce the issue
Search before asking
Describe the bug
Custom
JsonDeserializer
s set viaBeanDeserializerModifier::updateBuilder
work for mutable beans only. They are ignored for immutable ones. This issue originates from #4351.Version Information
At least 2.14 - 2.16.1, likely since much longer
Reproduction
Explanatory unit tests, as well as a potential fix, are part of my PR #4357.
Expected behavior
Custom
JsonDeserializer
s set viaBeanDeserializerModifier::updateBuilder
shall work for mutable and immutable beans.Additional context
Note: My suggested fix does work for this very scenario and doesn't break any of the existing unit tests. However, it may not fix other, related issues with
BeanDeserializerModifier
. Also, as I don't know every single Jackson feature and this part of the code is very delicate and complex, it may interfere with other features. Please review detailed.The text was updated successfully, but these errors were encountered: