John Vines created THRIFT-2723:
----------------------------------
Summary: putTo utility methods don't work well for Map values
Key: THRIFT-2723
URL: https://issues.apache.org/jira/browse/THRIFT-2723
Project: Thrift
Issue Type: Bug
Components: Java - Compiler
Affects Versions: 0.9
Reporter: John Vines
I'm a big fan of the addTo/putTo methods in the thrift generated structures.
However, if the entry/value is a Map type, which the compiler should know
about, it does no effort to merge entries. Meaning, if I putToMap(k, map(kk1,
v1)) and then putToMap(k, map(kk2, v2)), I will end up with a thrift map of (k,
map(kk2,v2)) and not (k, map(kk1,v1;kk2,v2)).
This can be worked around with client code, but I sort of feel like the
compiled versions should provide this utility as well. This behavior may have
to be flagged as it can cause a different behavior.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)