-
-
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
Fix #3406: Change default of DeserializationFeature.FAIL_ON_TRAILING_TOKENS
to true
#4941
Fix #3406: Change default of DeserializationFeature.FAIL_ON_TRAILING_TOKENS
to true
#4941
Conversation
…_TRAILING_TOKENS` to `true`
src/test/java/tools/jackson/databind/jsontype/PolymorphicDeserErrorHandlingTest.java
Outdated
Show resolved
Hide resolved
src/test/java/tools/jackson/databind/jsontype/TestPolymorphicWithDefaultImpl.java
Outdated
Show resolved
Hide resolved
src/test/java/tools/jackson/databind/jsontype/ext/ExternalTypeIdTest.java
Outdated
Show resolved
Hide resolved
Oh wow! I should have looked deeper into failures -- exception message mislead me to think there was a real problem. Still, I think error handling for incomplete content seems brittle. Let me look at this for a bit. Thank you for diagnosing the immediate issue! |
Ahhhhh! I get it now -- the error report is making wrong assumption; need to file a separate issue against |
Thank you again @JooHyukKim !!! This was excellent, I merged fixes to 2.x, and merged the other PR so can close this now. Also filed for follow-up work wrt confusing error message that spooked me :) |
Extended version of #4902 @cowtowncoder you may want to refer to.
Here I just fixed JSON syntax error in the failing tests from #4902.
The JSON syntax errors seem unrelated to the tests.