Open yukinomiu opened 1 year ago
What happened:
Java调用Golang Provider时, Golang Provider返回的响应结构体中包含指针类型(*int64, 对应Java的java.lang.Long)字段, 客户端无法解析. 将Golang Provider响应体中的指针字段改为非指针类型, 或者改为*bool即可正常工作.
*int64
java.lang.Long
*bool
What you expected to happen:
Golang Provider响应结构体中包含的指针字段(*int32, *int64)等, 可以正确映射为Java中的包装类型.
*int32
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
@yukinomiu is there demo code to simulate the issue?
@tiltwind I had posted the same issue in dubbo-go project: https://github.com/apache/dubbo-go/issues/2410 you can find code details in this issue.
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