Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-783

.equals java method is broken on structs containing binary-type fields

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: 0.4
    • Component/s: Java - Compiler
    • Labels:
      None

      Description

      The generated code uses field1.equals(field2) (which is never the case except for the trivial one of field1==field2) instead of Arrays.equals(field1, field2).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jbellis Jonathan Ellis
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: