-
-
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
Serialization of the field with deserialization config #323
Comments
Interesting. One thing I am wondering is whether missing |
Hmmh. I actually get an exception with 2.2.3. |
Any improvements on this issue? |
No. If anyone has time feel free to work on it. |
Interesting: looks like test would work as expected for 2.4 (master) -- I added test case, it is passing. |
Checked with 2.3: still failing with 2.3.2. So this is due to a recent fix, although indirect one: most likely one for #369. |
Status with 2.4 is bit unclear; only now fully understanding where the problem comes from -- difficulties in differentiating between implicit (from underlying accessor name) and explicit (annotation) names, and how conflict resolution deals with the two. |
Ok. After fixes to handling of implicit names, at this point I realize that there is a real conflict: field I will modify test accordingly to verify that above-mentioned approaches work. |
Tests pass, as long as field |
Hello,
(I am copying the issue from FasterXML/jackson-core#112 with @cowtowncoder 's suggestion)
I am talking about jackson version 1.9.13.
Here is the demonstration of the bug.
When I serialize new TestClass( 5 ), I get this json: {"b":5}
Now I am changing my code to this version:
When I serialize new TestClass( 5 ), I get this json: {"a":5,"b":5}
Here, I am not expecting the field "a" in the serialized json, I only expect it during the deserialization.
Because of the legacy data, I needed to serialize and deserialize a field with different names. My code was working fine with jackson 1.8 version. When I updated to jackson 1.9, this bug appeared and possibly screwed up various parts of my dataset (which is in size of a couple of hundred million records).
By the way, this bug does not exist in Jackson 2.2.
The text was updated successfully, but these errors were encountered: