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

Type specialization from Object -> reference type does not work #1290

Closed
cowtowncoder opened this issue Jul 7, 2016 · 1 comment
Closed

Comments

@cowtowncoder
Copy link
Member

(note: offshoot of #1256)

Usage like:

@JsonSerialize(as=Optional.class)
public Object reference

does not work as expected, most likely since type specialization does not convert from SimpleType into ReferenceType, and as a result BeanSerializer is used (at least by modules that expect to get proper type).

@cowtowncoder
Copy link
Member Author

Hmmh. No; specialization from Object does actually work as expected; it is handled as a special case.

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

No branches or pull requests

1 participant