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

sets and maps break equality

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.9
    • Ruby - Library
    • None

    Description

      I've found that two structs that have value-equivalent sets or maps as values for some reason cause struct's == to fail. This is inconsistent with other languages.

      For example, this struct:

      struct {
        set_byte_map: <Set: { {1=>2} }>,
        map_byte_map: { {1=>1} => 1 }
      }
      

      created twice independently will not be ==.

      Attachments

        1. THRIFT-369.patch
          7 kB
          Ilya Maykov

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: