Skip to content
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

Allow IonObjectMapper with class name annotation introspector to deserialize generic subtypes #192

Merged
merged 1 commit into from Dec 18, 2019

Conversation

ankel
Copy link

@ankel ankel commented Dec 18, 2019

…rialize non-annotated payloads.

Currently, an Ion Mapper with Classname Id resolver (and likely other kind of type id resolver) loses the ability to deserialize plain, non-annotated payload using only generic hints provided through type reference. This bug was likely because of this commit [1].

The fix here is to construct the type with full generic information instead of just using defaultImpl (which is now just a class).


[1] FasterXML/jackson-databind@596c6dd#diff-48b058c7384ce3f9fc9e7440fc7dc804L89

…rialize non-annotated payloads.

Currently, an Ion Mapper with Classname Id resolver (and likely other kind of type id resolver) loses the ability to deserialize plain, non-annotated payload using only generic hints provided through type reference. This bug was likely because of this commit [1].

The fix here is to construct the type with full generic information instead of just using defaultImpl (which is now just a class).

[1] FasterXML/jackson-databind@596c6dd#diff-48b058c7384ce3f9fc9e7440fc7dc804L89
@cowtowncoder
Copy link
Member

Fix looks legit, will merge.

@cowtowncoder cowtowncoder merged commit c50dadd into FasterXML:2.11 Dec 18, 2019
@cowtowncoder cowtowncoder added this to the 2.11.0 milestone Dec 18, 2019
@cowtowncoder cowtowncoder changed the title Allow IonObjectMapper with class name annotation introspector to dese… Allow IonObjectMapper with class name annotation introspector to deserialize generic subtypes Dec 18, 2019
cowtowncoder added a commit that referenced this pull request Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants