Skip to content

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.

2 participants