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

Go generator doesn't deal well with map keys of type binary

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.2
    • Component/s: Go - Compiler
    • Labels:
      None
    • Environment:

      Linux phileas 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1+deb7u1 x86_64 GNU/Linux (testing/jessie)

      Description

      The current Go generator doesn't deal well with maps where the map key is []byte. For some weird reason, you just can't have a map[[]byte]foo in Go, so we have to go for map[string]foo, which is actually equivalent (Go strings preserve all bytes).

      I'm trying to come up with a patch for this.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tonnerre Tonnerre Lombard
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: