[
https://issues.apache.org/jira/browse/THRIFT-5807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17871832#comment-17871832
]
Team_RPCtester commented on THRIFT-5807:
----------------------------------------
Dear Yuxuan,
The example is shown as below.
go
{code:java}
agr_method_3_0 := commonResource.NewStructClass_0()
agr_method_3_0.F_1 = 10 {code}
python
{code:java}
agr_method_3 = StructClass_0()
agr_method_3.f_1 = 10{code}
Thank you.
> 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
> Priority: Major
>
> 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)