[
https://issues.apache.org/jira/browse/THRIFT-5807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jens Geyer resolved THRIFT-5807.
--------------------------------
Fix Version/s: 0.25.0
Assignee: Sylwester Lachiewicz
Resolution: Fixed
> Generated Go enums' always appear to be <UNSET> for out of ranges values in
> enum
> --------------------------------------------------------------------------------
>
> Key: THRIFT-5807
> URL: https://issues.apache.org/jira/browse/THRIFT-5807
> Project: Thrift
> Issue Type: Bug
> Components: Go - Library
> Affects Versions: 0.19.0, 0.20.0
> Reporter: Team_RPCtester
> Assignee: Sylwester Lachiewicz
> Priority: Major
> Fix For: 0.25.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Hi,
> We discover an inconsistent behavior illustrated by the following example.
>
> {code:java}
> namespace go commonResource
> enum Enum_0 {
> e_0 = 0,
> e_1 = 1,
> }
> struct StructClass_0 {
> 1: required Enum_0 f_1,
> }
> service DataService {
> StructClass_0 Method_3(1: StructClass_0 agr_method_3)
> }
> {code}
>
> When the value of f_1 is set to 10(which is out of 0 and 1), the Go client
> side displays UNSET, while other languages correctly transmit the value 10.
> Thank you.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)