-
-
Notifications
You must be signed in to change notification settings - Fork 143
4 test failures for master
due to default change (see https://github.com/FasterXML/jackson-databind/issues/3406)
#701
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
Comments
I'll look into the issue. At least 1 of the failing tests serializes an object instance with Jackson and tries to deserialize the resultant json with Jackson as a round trip. Could be an edge case where empty json is created. |
I can confirm one test seralizes an object with no fields and the resultant json is |
I have a similar test in the same test class that serializes an object instance as This error looks like:
|
In case of In case of |
Reasonable point. The ScalaObjectDeserializer was not consuming the tokens. e755834 fixes the tests but sort of shows that deserializing Scala Objects (singleton class instances in Java) is a bit of an edge case and the code in ScalaObjectDeserializer is just not right. I'll see if it can be improved. The change I've added gets around the immediate issue. I will backport it to branch 2.19. |
Excellent! We did find a few test problems in |
So, looks like some tests need changes now that
DeserializationFeature.FAIL_ON_TRAILING_TOKENS
is enabled by default.Databind had a few, mostly bad json in test (trailing quotes or duplicated ']
/
}at the end). Can also just ensure default for setting is
false` if that makes more sense.The text was updated successfully, but these errors were encountered: