You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (JIRA)" <ji...@apache.org> on 2013/11/01 12:29:19 UTC

[jira] [Commented] (THRIFT-2248) Go generator doesn't deal well with map keys of type binary

    [ https://issues.apache.org/jira/browse/THRIFT-2248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13811179#comment-13811179 ] 

Jens Geyer commented on THRIFT-2248:
------------------------------------

Sad, but true. Any patches about this are highly appreciated though. 

> Go generator doesn't deal well with map keys of type binary
> -----------------------------------------------------------
>
>                 Key: THRIFT-2248
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2248
>             Project: Thrift
>          Issue Type: Bug
>          Components: Go - Compiler
>    Affects Versions: 1.0
>         Environment: Linux phileas 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1+deb7u1 x86_64 GNU/Linux (testing/jessie)
>            Reporter: Tonnerre Lombard
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.1#6144)