-
-
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
Delegating JsonCreator disregards JsonDeserialize.as
(and contentAs
) annotation
#2016
Comments
Yes, seems legit; |
Ok, I can reproduce this. Looks like usual type refinement is not called for parameters to delegating-creator; and this would also prevent custom |
Thank you for reporting this! I will see if I can also test and (if need be) fix support for Fix will be in 2.9.6. |
JsonDeserialize.as
(and contentAs
) annotation
Wonderful, thanks for the fix @cowtowncoder! |
Given a class of this form, the documentation suggests that
value
should be created as aLinkedList
, however it is always anArrayList
. Furthermore, if I modify the@JsonDeserialize
annotation with incorrect values (e.g.as = HashMap.class
) it does not change behavior.If I expect an object with a property by using a
@JsonProperty
annotation, the@JsonDeserialize
annotation does work as expected.Simple repro here:
https://github.com/cakofony/jackson-jsoncreator-deserializeas-repro
Test class is located here
Happy to provide additional info.
Thanks!
The text was updated successfully, but these errors were encountered: