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

decode Integer -> *int32 报错 #358

Closed
alpha-baby opened this issue Apr 26, 2023 · 1 comment · Fixed by #361
Closed

decode Integer -> *int32 报错 #358

alpha-baby opened this issue Apr 26, 2023 · 1 comment · Fixed by #361

Comments

@alpha-baby
Copy link

alpha-baby commented Apr 26, 2023

What happened:

readme 中是指出类型是这样对应的,但是在这样使用的时候会报错

Integer | java.lang.Integer | *int32

=== RUN TestDecodeSliceIntegerHasNull
2023/04/26 18:23:35 get java reply: customReplyTypedListIntegerHasNull
--- FAIL: TestDecodeSliceIntegerHasNull (30.50s)
panic: reflect: call of reflect.Value.SetInt on ptr Value [recovered]
panic: reflect: call of reflect.Value.SetInt on ptr Value

What you expected to happen:

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

Anything else we need to know?:

@alpha-baby alpha-baby mentioned this issue Apr 26, 2023
@alpha-baby
Copy link
Author

alpha-baby commented Apr 26, 2023

codec.go:257 SetValue

是不是改成调用这个就 OK 了

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

Successfully merging a pull request may close this issue.

1 participant