-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Deserialization error with custom AnnotationIntrospector in Jackson 2.8.8 #1756
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
Comments
Thank you for reporting the issue. I hope to look into that soon. |
I took a stab at bisecting Neither Thanks for taking a look! |
Ok interesting. Took a while to understand where everything comes from (at first thought it's missing |
Yeah, to give some more context, this is how the auto-matter jackson module works. Tried to debug this a bit. Have yet to look into why the presence of |
Seems like without |
People are having issues with jackson 2.8.8 as required by helios-test due to this issue: FasterXML/jackson-databind#1756
So, Most likely difference in handling, between implicit and explicit names, is that only explicit names indicate that a constructor should be used as Creator method even without |
Ok. Interesting. I suspect this may have to do with As a work-around I would suggest implementing I hope to figure out more about what is going on, but that may take a while. |
@cowtowncoder Right, I think one reason that I didn't implement My understanding of how this works in jackson < 2.8.8 is that my This change to my repro code illustrates the issue: danielnorberg/jackson-28-annotation-introspection-breakage-repro@9b6d11d |
Unfortunately test I now have does not fail, but I can't be 100% sure that is due to fix or test itself not reproducing the problem. This area will also be rewritten for Jackson 3.0 (and there I am confident problem can be resolved for good). |
Yeah, with
🍾 🎉 |
@danielnorberg Most excellent. I hope fix I made (based on findings with early 3.0 work) helps with other tricky problems, some of which I thought would not be easy to fix. |
Jackson 2.9.2 has a fix for an issue that affects automatter users, of which several are also helios-testing users. FasterXML/jackson-databind#1756
In Jackson 2.8.8 I am getting a deserialization error when using a custom
AnnotationIntrospector
together with@JsonIgnore
and@JsonDeserialize
annotations.@JsonIgnore
or@JsonDeserialize
annotations makes deserialization work.@JsonDeserialize
also works.Here is a full repro, as minimal as I could make it:
https://github.com/danielnorberg/jackson-28-annotation-introspection-breakage-repro
I will try to bisect my way to exactly what jackson commit is causing this issue.
Btw, thanks for Jackson, it's truly an awesome library and I'm always happy using it =)
The text was updated successfully, but these errors were encountered: