decode Integer -> *int32 报错
alpha-baby opened this issue · 1 comments
alpha-baby commented
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 commented
codec.go:257 SetValue
是不是改成调用这个就 OK 了