-
-
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
Deserialize integer/long JSON into double single-arg constructors #4474
Conversation
1426158
to
64e6697
Compare
Thank you! I hope to review this soon, get it merged. ONe process thing: if we haven't yet gotten a CLA (only needs to be done once so if there is one, that's good), we'd need one from: https://github.com/FasterXML/jackson/blob/master/contributor-agreement.pdf and the usual way is to print it, fill & sign, scan/photo, email to |
contributor agreement has been sent |
CLA received, hoping to merge tomorrow. Thank you for sending CLA so quickly! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Ok looks good but will need to wait until tomorrow to merge (ran out of time tonight, wrt merge to |
As discussed in #4453
This PR ensures that deserialization of integer/long json like
5
or12345678901
occurs without error when the target class has a single argument constructor of argument typedouble
. This ensures consistency with the treatment by Jackson of deserialization into multi-arg constructors (annotated with@JsonProperty
).Tests provided give full coverage of changed code and I've also tested that expected preferences are applied when multiple constructors are available.
Note that other types (like
float
at least) will be handled in another PR.