Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
In Java, byte[].equals tests object equality, not value equality. As a result, if you have two list<binary> (or set<binary>, or map<binary, binary> with the same values and you do TBase.equals(), two structs that match by value won't return true. If we're going to do value equality, which I think we should, then we should make this consistent with collection types.
Attachments
Issue Links
- is duplicated by
-
THRIFT-783 .equals java method is broken on structs containing binary-type fields
-
- Closed
-
- is part of
-
THRIFT-830 Switch binary field implementation from byte[] to ByteBuffer
-
- Closed
-
- relates to
-
THRIFT-135 Nulls in set<string> throw an exception in Java
-
- Closed
-