[
https://issues.apache.org/jira/browse/THRIFT-4862?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16836741#comment-16836741
]
Jens Geyer edited comment on THRIFT-4862 at 5/9/19 10:17 PM:
-------------------------------------------------------------
NB. Slight compilcation comes from the rather unfortunate (but documented)
fact, that [Delphi generates RTTI info only for some specific types of
enums|https://stackoverflow.com/questions/7857943/rtti-properties-not-returned-for-fixed-enumerations-is-it-a-bug/7857981#7857981].
Hence, in some cases the values can be printed as names, but in others we
still have to print the numeric value.
was (Author: jensg):
NB. Slight compilcation comes from the rather unfortunate (but documented)
fact, that [Delphi does generate RTTI infor only for specific types of
enums|https://stackoverflow.com/questions/7857943/rtti-properties-not-returned-for-fixed-enumerations-is-it-a-bug/7857981#7857981].
Hence, in some cases the values can be printed as names, but in others we
still have to print the numeric value.
> better ToString() support for enums and container types
> -------------------------------------------------------
>
> Key: THRIFT-4862
> URL: https://issues.apache.org/jira/browse/THRIFT-4862
> Project: Thrift
> Issue Type: Improvement
> Components: Delphi - Library
> Reporter: Jens Geyer
> Assignee: Jens Geyer
> Priority: Major
>
> The Delphi library has limited support for ToString(), i.e. printing
> structured Thrift data into some textual form. Where it currently falls short
> is two places:
> a) {{enum}} types are always rendered in their numeric representation
> b) {{list<>}}, {{map<>}} and {{set<>}} are shown only in their most generic
> form (i.e. the underlying classname of the container) which is less useful
> either.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)