You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/11/28 12:46:52 UTC

[GitHub] [dubbo-go-hessian2] luky116 opened a new issue #294: go调用java,返回值为枚举类型,会报错

luky116 opened a new issue #294:
URL: https://github.com/apache/dubbo-go-hessian2/issues/294


   go-client调用java-server,返回值为枚举类型,go侧报错了。这个有同学遇过吗?
   
   ![image](https://user-images.githubusercontent.com/38887641/143768354-cfb01278-63f0-4466-a3c5-6032963034fc.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go-hessian2] luky116 closed issue #294: go调用java,返回值为枚举类型,会报错

Posted by GitBox <gi...@apache.org>.
luky116 closed issue #294:
URL: https://github.com/apache/dubbo-go-hessian2/issues/294


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go-hessian2] wongoo commented on issue #294: go调用java,返回值为枚举类型,会报错

Posted by GitBox <gi...@apache.org>.
wongoo commented on issue #294:
URL: https://github.com/apache/dubbo-go-hessian2/issues/294#issuecomment-984176514


   
   `gender, err := userProvider.GetGender(context.TODO(), 1)` 这里的最后一个参1 ,应该用 MAN/WOMAN 吧?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go-hessian2] luky116 commented on issue #294: go调用java,返回值为枚举类型,会报错

Posted by GitBox <gi...@apache.org>.
luky116 commented on issue #294:
URL: https://github.com/apache/dubbo-go-hessian2/issues/294#issuecomment-984203193


   > `gender, err := userProvider.GetGender(context.TODO(), 1)` 这里的最后一个参1 ,应该用 MAN/WOMAN 吧?
   
   参数定义的是int,返回值是枚举值。
   java-server端是可以正常收到参数并处理返回的,但是go-client端无法解析返回的结果。
   ![image](https://user-images.githubusercontent.com/38887641/144339798-00b3338e-70b2-42ae-8538-452d0b994ffb.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org