You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Filipp Keks (JIRA)" <ji...@apache.org> on 2013/10/29 11:13:31 UTC
[jira] [Created] (THRIFT-2246) Unset enum value is printed by
ToString in c# class
Filipp Keks created THRIFT-2246:
-----------------------------------
Summary: Unset enum value is printed by ToString in c# class
Key: THRIFT-2246
URL: https://issues.apache.org/jira/browse/THRIFT-2246
Project: Thrift
Issue Type: Bug
Reporter: Filipp Keks
if enum is not set, ToString() returns a first enum value, but it should indicate that field is empty
enum Distance
{
DISTANCE_1 = 0,
DISTANCE_2 = 1,
}
struct RaceDetails {
1: optional Distance distance,
}
c#:
new RaceDetails().ToString()
result: "RaceDetails(Distance:DISTANCE_1)"
expected: "RaceDetails(Distance:)"
--
This message was sent by Atlassian JIRA
(v6.1#6144)