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

Fix #3406: Change default of DeserializationFeature.FAIL_ON_TRAILING_TOKENS to true #4941

Closed

Conversation

JooHyukKim
Copy link
Member

@JooHyukKim JooHyukKim commented Jan 29, 2025

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.

@cowtowncoder
Copy link
Member

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!

@cowtowncoder
Copy link
Member

Ahhhhh! I get it now -- the error report is making wrong assumption; need to file a separate issue against jackson-core. Your fixes are spot on!

@cowtowncoder
Copy link
Member

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

FasterXML/jackson-core#1394

for follow-up work wrt confusing error message that spooked me :)

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

Successfully merging this pull request may close these issues.

2 participants