Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.6.1
-
None
-
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);