Hi! After your fix for the HashMap, I was still having some issues when comparing two changed maps when the values were complex classes, even though I did have HasEquals implemented.
After some debugging, I found out that on this line, a hash code would be generated for the string [4,[object Object]] instead of taking into account the value's actual hash code.
I hope this fix for it is ok! Since fieldsHashCode collects all arguments passed to it, this should be fine. Of course, plain objects that don't implement HasEquals will still not generate a sensible hash code.
Hi! After your fix for the HashMap, I was still having some issues when comparing two changed maps when the values were complex classes, even though I did have HasEquals implemented.
After some debugging, I found out that on this line, a hash code would be generated for the string
[4,[object Object]]
instead of taking into account the value's actual hash code.I hope this fix for it is ok! Since
fieldsHashCode
collects all arguments passed to it, this should be fine. Of course, plain objects that don't implementHasEquals
will still not generate a sensible hash code.Thanks again!