-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Custom UnmodifiableSetMixin Fails in Jackson 2.7+ but works in Jackson 2.6 #1392
Comments
Interesting. So, true, no zero-arg constructor, but that's not what mix-in tries to do. |
Looking through 2.7.0 notes, guessing this might be due to one of: |
Ok. Almost certain this is a regression due to #1010, which lead to separation of "delegating array creators" from other kinds. Looks like |
Sigh. Nasty one to solve for a patch... but I think I found a way. Need to figure out clean it up for 2.8, or, at very least master (2.9). |
Thanks for the fast turn around! On Oct 4, 2016 6:37 PM, "Tatu Saloranta" [email protected] wrote:
|
I'd like to be able to deserialize an
UnmodifiableSet
with default typing enabled. To do this I have created anUnmodifiableSetMixin
as shown below:NOTE: You can find a minimal project with all the source code to reproduce this issue at https://github.com/rwinch/jackson-unmodifiableset-mixin
I then try to use this to deserialize an empty set.
The test passes with Jackson 2.6, but fails using Jackson 2.7+ (including Jackson 2.8.3) with the following stack trace:
This seems like a passivity issue. Is there a workaround for this problem?
The text was updated successfully, but these errors were encountered: