Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-1253

Code generated for maps is not compiling

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.6.1
    • Fix Version/s: 0.7
    • Component/s: JavaME - Compiler
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      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);

        Attachments

        1. Patch.patch
          0.6 kB
          Raphaël B.

          Activity

            People

            • Assignee:
              rbartement Raphaël B.
              Reporter:
              rbartement Raphaël B.
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: