dubbo-java 调用 dubbo-go方法,如果方法返回值为 基本类型,java侧无法解析
luky116 opened this issue · 2 comments
luky116 commented
What happened:
java-dubbo-client 调用 Dubbo-go-server的方法,结果值为int类型,go把这个值的类型转成了 J 作为返回值。但是java-client没办法解析这个类型
这是java侧的效果:
What you expected to happen:
希望java-client能识别 J 为int类型,并解析出response
How to reproduce it (as minimally and precisely as possible):
可以参考dubbogo-sample这个例子,能复现问题:
https://github.com/luky116/dubbo-go-samples/tree/fix-tpcTripleHessian2/rpc/triple/hessian2
Anything else we need to know?:
no
binbin0325 commented
@luky116 已经定位到问题的根因,只有tri协议时才会出现,我会在dubbo-go/grpc-go中提交pr修复它,这个问题本质和hessian2无关
wongoo commented
@sanxun0325 pls add a link ref to the pr submitted in dubbo-go.