Closed MateuszGravity9 closed 1 year ago
Issue copied from: https://github.com/java-json-tools/json-patch/issues/137
There seems to be an issue related to patching Float values in JsonNumEquals.
When patching a model with a Float value - the TestOperation value is deserialized to Double - and comparing a Double to a Float numEquals fails.
I've included a testcase, that shows the issue -> see TestFloatDoubleProblem.java jsonpatch-issue.zip
Kindly regards.
Original issue https://github.com/java-json-tools/json-patch/issues/137
Issue copied from: https://github.com/java-json-tools/json-patch/issues/137
There seems to be an issue related to patching Float values in JsonNumEquals.
When patching a model with a Float value - the TestOperation value is deserialized to Double - and comparing a Double to a Float numEquals fails.
I've included a testcase, that shows the issue -> see TestFloatDoubleProblem.java jsonpatch-issue.zip
Kindly regards.