Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dubbo-go作为Provider时, RPC返回的结构体中的指针字段无法被Java正确映射为Java包装类型 #365

Open
yukinomiu opened this issue Aug 31, 2023 · 2 comments

Comments

@yukinomiu
Copy link

yukinomiu commented Aug 31, 2023

What happened:

Java调用Golang Provider时, Golang Provider返回的响应结构体中包含指针类型(*int64, 对应Java的java.lang.Long)字段, 客户端无法解析.
将Golang Provider响应体中的指针字段改为非指针类型, 或者改为*bool即可正常工作.

What you expected to happen:

Golang Provider响应结构体中包含的指针字段(*int32, *int64)等, 可以正确映射为Java中的包装类型.

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:
dubbo-go版本: v3.1.0
dubbo-go-hessian2 v1.12.2
dubbo-spring-boot-starter: 3.2.5

@tiltwind
Copy link
Contributor

tiltwind commented Sep 1, 2023

@yukinomiu is there demo code to simulate the issue?

@yukinomiu
Copy link
Author

@tiltwind I had posted the same issue in dubbo-go project: apache/dubbo-go#2410
you can find code details in this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants