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

Fix handling of generics when reading objects #1769

Merged
merged 2 commits into from
May 13, 2020

Conversation

graemerocher
Copy link
Contributor

Generics information is not currently used when deserializing objects which leads to Jackson deserializing objects as a List of Map instances causing downstream class cast exceptions. This change ensures Jackson's JavaType API is used to correctly deserializing objects using generics.

@romain-grecourt
Copy link
Contributor

/oca-checked

@romain-grecourt
Copy link
Contributor

/trigger

@romain-grecourt
Copy link
Contributor

@graemerocher Looks like you have some checkstyle errors.

@tomas-langer tomas-langer merged commit 081db2a into helidon-io:master May 13, 2020
@danielkec danielkec mentioned this pull request May 13, 2020
@jbescos
Copy link
Member

jbescos commented May 13, 2020

I think the checkstyle doesn't like the order of imports.

+ ./etc/scripts/checkstyle.sh
[ERROR] /builds/workspace/ublic_helidon-main_PR-1763-merge/media/jackson/common/src/main/java/io/helidon/media/jackson/common/JacksonBodyReader.java:33: Wrong order for 'com.fasterxml.jackson.databind.JavaType' import. [ImportOrder]
CHECKSTYLE ERROR

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.

4 participants