Description
The current strategy for comparing Maps is sorting the (key, value) tuples by _.toString, zipping tuples from both maps together, and then comparing tuples within each of the pairs separately.
This is not ideal for byte arrays. The string representations of byte arrays looks like “[B@7d263ddc” and has nothing to do with values actually contained within the array.
Hence, if a map has byte array keys, then random values get compared with each other, which can result in false negatives.
Attachments
Issue Links
- links to