[
https://issues.apache.org/jira/browse/THRIFT-2246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13813643#comment-13813643
]
Hudson commented on THRIFT-2246:
--------------------------------
SUCCESS: Integrated in Thrift #934 (See
[https://builds.apache.org/job/Thrift/934/])
THRIFT-2246 Unset enum value is printed by ToString() (jensg: rev
088c26b40ccf747eaa5200727c9bacdc9288fb35)
* compiler/cpp/src/generate/t_csharp_generator.cc
* compiler/cpp/src/generate/t_delphi_generator.cc
THRIFT-2246 Unset enum value is printed by ToString() - fix for some edge cases
(jensg: rev 0ec155e1608c2909183b7c5e0b08a4a80579b4bd)
* compiler/cpp/src/generate/t_csharp_generator.cc
* compiler/cpp/src/generate/t_delphi_generator.cc
> Unset enum value is printed by ToString()
> -----------------------------------------
>
> Key: THRIFT-2246
> URL: https://issues.apache.org/jira/browse/THRIFT-2246
> Project: Thrift
> Issue Type: Bug
> Components: C# - Compiler, Delphi - Compiler
> Affects Versions: 0.9.1
> Reporter: Filipp Keks
> Assignee: Jens Geyer
> Priority: Minor
> Fix For: 0.9.2
>
> Attachments:
> 0002-THRIFT-2246-Unset-enum-value-is-printed-by-ToString-continued.patch,
> THRIFT-2246_Unset_enum_value_is_printed_by_ToString.patch
>
>
> 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)