Details
-
Bug
-
Resolution: Done
-
Minor
-
5.2.0.Beta6
-
None
Description
When a ByteArrayKey is printed out, the format is ByteArrayKey{data=ByteArray{size=..., hashCode=..., array=...}}
However, ByteArray computes hashCode using array.hashCode() instead of Arrays.hashCode(array) and, therefore, two equal ByteArrayKeys have different hashCode when printed out.
Another way to fix that could be using Arrays.hashCode(array) in Util.printArray() (although I am not sure whether this could break anything).
As the result is pretty unexpected, I consider this a bug rather than a feature request.