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

Add support for using contentAs (and related) for referential types like AtomicReference #882

Closed
cowtowncoder opened this issue Jul 30, 2015 · 1 comment

Comments

@cowtowncoder
Copy link
Member

(note: based on https://github.com/FasterXML/jackson-datatype-jdk8/issues/13)

It would make sense to allow using contentAs modifier for referential types, to allow more/less specialized serializers/deserializers for referential types like "optionals" (from Guava, JDK8) and "AtomicReference". Since they act in many ways as "single element containers", this would be useful.

@cowtowncoder
Copy link
Member Author

Verified that @JsonDeserialize(contentAs=...) work as expected.

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