-
Notifications
You must be signed in to change notification settings - Fork 21
Afterburner and NON_EMPTY on 0-valued primitive types #55
Comments
First of all, thank you for reporting this. At very least Afterburner should NOT change serialization semantics, so there is a bug of some kind no matter what. Now, I will have to check, but yes, I thought that was the expected behavior. "Empty" concept would consider 'default' value of primitives (and their wrappers) as empty. Question there would be why did non-afterburner version filter them out. Which version is this with? 2.5.1? |
Thank you for an amazing suite of projects! Yes it is v2.5.1 on all jackson dependencies, which I checked with |
Here's a test case: https://gist.github.com/nzroller/5c500b1f1515786c3e58
|
Wow. So I had implemented proper handling in Afterburner, but not in |
Thanks for having taken the time to look into it! |
Is it the expected behaviour, that int or long
0
fields are excluded from the serialized object ifNON_EMPTY
is used? It seems that without afterburner these values are serialized.I see that this was changed in 8a84900. Without the afterburner module the primitive 0 values are serialized but with it they're not. We're using Dropwizard which adds afterburner. We'll change our objects to use NON_NULL so this is not a problem, I'm just curious.
The text was updated successfully, but these errors were encountered: