-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Deserialization behavior change with @JsonCreator and @ConstructorProperties between 2.17 and 2.18 #4908
Comments
Thank you for reporting this @gssbzn. It definitely sounds like bug. |
Oh. But this looks odd:
Use of |
Found the reason: |
Fixed. Thank you @gssbzn for reporting this! Will be in 2.18.3 release. |
Hi @cowtowncoder , since this is a part of 2.18.3, when is it expected to be released any timeline? We need the patch urgently and there is no due date assigned |
@nipanwar77 can't you use 2.17 until new releases are made? |
@pjfanning We need to move to spring-boot 3.4.0 for security reasons and we are not able to use 2.17 with it. |
@pjfanning I checked that there is no open issue for 2.18.3 at your end, can we get patch soon :) |
There is other work happening. 2.18.3 will happen when it happens. Please provide a detailed description of why you can't use an older version of Jackson. Releases involve a lot of work. Have you even tried overriding the Jackson version in your build? What proof do you that spring-boot needs an exact version of Jackson and can't be used with other recent versions of Jackson? |
@deepakraghav0 Things are bit hectic with 3.0.0-rc1 work, so 2.18.3 will probably happen in early March. Like @pjfanning indicated, full release takes quite a bit of effort (2.5 - 4 hours of my time) and I don't work on Jackson full time so unfortunately finding chunk of "free" time is not always easy. But I definitely also want to get 2.18.3 out, it's pretty well loaded with fixes: https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.18.3 |
Hello @cowtowncoder , sorry for the late reply. I noticed that version 2.18.3 was released on February 28th. Thanks for the update! @pjfanning we have some complex scenarios that require version 2.18.3. Now that it is available, it should work for us. |
Search before asking
Describe the bug
We maintain a large codebase which has some legacy classes that use Hungarian notation and lombok,
Deserialization used to work up until the 2.18 update where jackson is no longer respecting the
@ConstructorProperties
to match the constructor properties and we are now seeingcannot deserialize from Object value (no delegate- or property-based Creator)
errors.This may be related to
INFER_CREATOR_FROM_CONSTRUCTOR_PROPERTIES
and the recent rewrite POJO Property IntrospectionVersion Information
2.18.2
Reproduction
Expected behavior
jackson should be able to leverage
@ConstructorProperties
for the@JsonCreator
Additional context
No response
The text was updated successfully, but these errors were encountered: