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

Hudson commented on THRIFT-1253:
--------------------------------

Integrated in Thrift #207 (See [https://builds.apache.org/job/Thrift/207/])
    THRIFT-1253. javame: Code generated for maps is not compiling

Fix a casting issue.

Patch: Raphael Bartement

bryanduxbury : http://svn.apache.org/viewvc/?view=rev&rev=1153270
Files : 
* /thrift/trunk/compiler/cpp/src/generate/t_javame_generator.cc


> 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


Reply via email to