You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Raphaël Bartement (JIRA)" <ji...@apache.org> on 2011/08/02 10:06:27 UTC

[jira] [Updated] (THRIFT-1253) Code generated for maps is not compiling

     [ https://issues.apache.org/jira/browse/THRIFT-1253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raphaël Bartement updated THRIFT-1253:
--------------------------------------

    Attachment: Patch.patch

> Code generated for maps is not compiling
> ----------------------------------------
>
>                 Key: THRIFT-1253
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1253
>             Project: Thrift
>          Issue Type: Bug
>          Components: JavaME - Compiler
>    Affects Versions: 0.6.1
>            Reporter: Raphaël Bartement
>         Attachments: Patch.patch
>
>
> The following field defined in the contract of a structure:
>     1:optional map<string,Foo> bar,
> will produce the following line in the related class's write(TProtocol oprot) method :
>     (Foo)this.bar.get(_iter42).write(oprot);
> The cast needs some additional parentheses:
>     ((Foo)this.bar.get(_iter42)).write(oprot);

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira