You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by jo...@apache.org on 2021/09/06 12:28:57 UTC
[dubbo-go-hessian2] branch master updated: 修正getArgType的反射取值逻辑
This is an automated email from the ASF dual-hosted git repository.
joezou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-go-hessian2.git
The following commit(s) were added to refs/heads/master by this push:
new 07f2058 修正getArgType的反射取值逻辑
new 20ce834 Merge pull request #276 from Chans-Open-Source/fix/fix_get_argument_java_type
07f2058 is described below
commit 07f2058e85abd9cac6571d7d9a58bee832d0765f
Author: Changeden <ch...@unizone.tech>
AuthorDate: Mon Sep 6 14:07:04 2021 +0800
修正getArgType的反射取值逻辑
---
request.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/request.go b/request.go
index 6d0b9ee..7a50465 100644
--- a/request.go
+++ b/request.go
@@ -103,7 +103,7 @@ func getArgType(v interface{}) string {
default:
t := reflect.TypeOf(v)
if reflect.Ptr == t.Kind() {
- t = reflect.TypeOf(reflect.ValueOf(v).Elem())
+ t = t.Elem()
}
switch t.Kind() {
case reflect.Struct: