Skip to content

Scalas Int type is not handled in the same way as java.lang.Integer #104

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

Open
longliveenduro opened this issue Oct 15, 2013 · 2 comments
Open

Comments

@longliveenduro
Copy link

Please see http://stackoverflow.com/questions/19379967/strange-deserializing-problems-with-generic-types-using-scala-and-jackson-and-ja for details.

Shouldn't be the scala "primitive types" be auto converted from Strings?

@christophercurrie
Copy link
Member

As answered on StackOverflow, this is now explained in the FAQ. I'm leaving it open, however, as a placeholder for fixing the issue more permanently.

@hagay3
Copy link

hagay3 commented Mar 28, 2019

Another solution is having @JsonTypeInfo(use = JsonTypeInfo.Id.CLASS) annotation to class data members.
It adds metadata to the data member and jackson is able to parse correctly the type.

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

No branches or pull requests

4 participants