-
Notifications
You must be signed in to change notification settings - Fork 31
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
Duplicate key detection does not work for java.util.Map
#50
Comments
Definitely sounds like a bug yes. Which version? |
I tested versions 2.8.8 and 2.9.0.pr2 |
@inorick thank you! Just wanted to verify; I occasionally get reports against versions so old that problem has been fixed. |
Lol. Feature added originally, never implemented. Obviously also not tested. Should do both. |
Hehe, thanks. I really like the 'jr' flavour of jackson and the whole idea behind it. This is literally the last thing I miss :) |
@inorick Thank you for reporting this; fixed. Please let me know if and when you find other edge cases; as I said testing coverage is bit lighter than it should be. Fix will be in 2.8.9 / 2.9.0.pr3. Also: appreciate feedback; it is hard to know which things are useful -- seemed to me too that light-weight variant like jr would make lots of sense for many use cases. So I'm happy others find it useful too! |
Thanks, that was quick! |
@cowtowncoder I have to reopen the issue: The function
|
@inorick Technically this is out of scope of setting, as it relates to |
java.util.Map
The feature flag
FAIL_ON_DUPLICATE_MAP_KEYS
does not seem to work. As I understand the parser configuration, the following code should throw an exception but doesnt:The same is true for this similar call:
The text was updated successfully, but these errors were encountered: