Field names can conflict with local variables in code for unions
----------------------------------------------------------------
Key: THRIFT-716
URL: https://issues.apache.org/jira/browse/THRIFT-716
Project: Thrift
Issue Type: Bug
Components: Compiler (Java)
Reporter: Nathan Marz
Try creating a union with the field name "value", and the code won't compile.
In writeFields for the generated class, you'll have something like the
following:
<code>
case VALUE:
String value = (String)getFieldValue();
oprot.writeString(value);
return;
</code>
"String value" conflicts with the parameter "Object value".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.