Replies: 2 comments
-
|
Please remove Lombok from reproduction; we cannot have tests with it (can de-Lombokify). Going forward feel free to directly file issue on jackson-databind instead of discussion. |
Beta Was this translation helpful? Give feedback.
-
|
My bad! I will file issue on jackson-databind in the future. I was able to find the related issue over there: Jackson 3 chooses all-args constructor instead of no-args for POJO with field defaults (behavior change vs 2.x) This change in Jackson 3 appears to be caused by preference for All Args Constructor over No Args Constructor in Jackson 3 now. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
ObjectMapper in Jackson 3 doesn't respect @JsonSetter(nulls = Nulls.SKIP) while ObjectMapper in Jackson 2 did.
Example:
Result:
(username is set to null even though it should have default value 'guest').
Is this expected behaviour now in Jackson 3?
Beta Was this translation helpful? Give feedback.
All reactions