Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.2
-
None
-
All
-
Patch Available
Description
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.