Include the symbolic name of a typedef field in the field metadata [patch]
--------------------------------------------------------------------------
Key: THRIFT-761
URL: https://issues.apache.org/jira/browse/THRIFT-761
Project: Thrift
Issue Type: New Feature
Components: Compiler (Java)
Affects Versions: 0.2
Environment: All
Reporter: Michael Douglas
Fix For: 0.3
The generator of Java code translates all Thrift typedefs to the appropriate
Java types. This means that the Thrift typedef name (aka symbolic name) is
being lost during Java code generation.
The typedef symbolic name should be included in the field value meta data so
that it is available for those who inspect metadata of their Thrift data
structures.
FieldValueMetaData, which is the base class for metadata of field values of all
types, already has isStruct(), isContainer() and type and is therefore a
natural choice for this.
We should introduce isTypedef() and getTypedefName() into class
FieldValueMetaData.
A patch is attached.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira