This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
equals()
of different numeric JsonNode
subtypes with same underlying value fails
#4342
Closed
1 task done
Labels
to-evaluate
Issue that has been received but not yet evaluated
Search before asking
Describe the bug
Hi, I am currently struggling with a little problem when comparing 2
ObjectNodes
.The comparison of the two red-surrounded objects does fail. The reason is the
numberArray
.ObjectNode
-1 holds these values asIntNode
while
ObjectNode
-2 holds these values asLongNode
would it be possible to adjust the comparison to let them match by value instead of type and value?
Version Information
2.16.0
Reproduction
see above
Expected behavior
comparison succeeds
Additional context
No response
The text was updated successfully, but these errors were encountered: