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


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