[
https://issues.apache.org/jira/browse/THRIFT-1253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bryan Duxbury closed THRIFT-1253.
---------------------------------
Resolution: Fixed
Fix Version/s: 0.7
Assignee: Raphaël Bartement
I just committed this. Thanks Raphael!
> 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
> Assignee: Raphaël Bartement
> Fix For: 0.7
>
> 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