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

Union compareTo is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.2
    • 0.2
    • Java - Compiler
    • None

    Description

      The generated compareTo method for comparable unions is incorrect. It currently only compares the values of the unions when the unions' set fields are different, which will very likely lead to incomparable situations.

      Attachments

        1. thrift-578.patch
          0.8 kB
          Bryan Duxbury

        Activity

          People

            bryanduxbury Bryan Duxbury
            bryanduxbury Bryan Duxbury
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: