JsonNodeFactory
method numberNode(long)
produces IntNode
for small numbers
#797
Milestone
JsonNodeFactory
method numberNode(long)
produces IntNode
for small numbers
#797
Looks like method
numberNode(long)
(and wrapped variant,numberNode(Long)
) will try to optimize things by constructing anIntNode
if value fits inint
. I don't think this makes sense; and it will also make it impossible to resolve #504.So, for 2.6, I will change the behavior. While this is backwards-incompatible change, in practice it should not lead to problems (never say never but...), but causes problems currently.
The text was updated successfully, but these errors were encountered: