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

When applying type modifiers, don't ignore container types. #1129

Merged
merged 1 commit into from
Feb 21, 2016

Conversation

nbauernfeind
Copy link
Member

jackson-module-scala relies on using type modifiers to find Maps/Seqs... etc. Maps are subtypes of Iterable[Tuple2[,]] which means that the CollectionLikeType is found before the MapLikeType and it is unable to be overwritten by a type modifier once the super types have been resolved.

cowtowncoder added a commit that referenced this pull request Feb 21, 2016
When applying type modifiers, don't ignore container types.
@cowtowncoder cowtowncoder merged commit 29bfc3b into FasterXML:2.7 Feb 21, 2016
@cowtowncoder
Copy link
Member

Yes, as per Scala changes I assume this is absolutely necessary. Will add some commentary; this is slightly risky change (i.e. ideally would have went in 2.7.0), but without it Scala module 2.7 probably won't work very well, so I am ok with it. Assumption also being that type modifications are not commonly used by things other than Jackson core modules AND that they are properly guarded already (meaning should not apply to types for which calls were not made formerly).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants