Alan Cabrera created THRIFT-5378:
------------------------------------
Summary: Generated Go enums' always appear to be <UNSET> in
debuggers
Key: THRIFT-5378
URL: https://issues.apache.org/jira/browse/THRIFT-5378
Project: Thrift
Issue Type: Improvement
Components: Go - Compiler
Reporter: Alan Cabrera
Currently, the generated Go enums' {{String()}} method returns "<UNSET>", when
its value is unknown, by the return statement at the end of the function. For
reasons unknown to me, this causes all enums in my debugger to have the value
"<UNSET>", even though they do have a proper value.
If I move the return statement up into a default case of the switch statement,
everything seems to display perfectly in the debugger. It's a simple enough
fix and I will submit a patch today.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)