Skip to content
Snippets Groups Projects
Unverified Commit b540c056 authored by Xin.Zh's avatar Xin.Zh Committed by GitHub
Browse files

Merge pull request #903 from cityiron/feature/fix-go2java-args

[Fix] struct javaclassname 2 dubbo provider
parents fb86fc9f 6108b0be
No related branches found
No related tags found
No related merge requests found
......@@ -489,6 +489,10 @@ func getArgType(v interface{}) string {
}
switch t.Kind() {
case reflect.Struct:
v, ok := v.(hessian.POJO)
if ok {
return v.JavaClassName()
}
return "java.lang.Object"
case reflect.Slice, reflect.Array:
if t.Elem().Kind() == reflect.Struct {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment