Skip to content

Commit

Permalink
Merge pull request #1783 from sanxun0325/3.0_hessian_support_java_lang
Browse files Browse the repository at this point in the history
support java method param java.lang
  • Loading branch information
LaurenceLiZhixin authored Mar 15, 2022
2 parents dfe4424 + 29648ed commit b6ee982
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions protocol/dubbo/impl/hessian.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,22 @@ func getArgType(v interface{}) string {
return "java.util.Map"
case hessian.POJOEnum:
return v.(hessian.POJOEnum).JavaClassName()
case *int8:
return "java.lang.Byte"
case *int16:
return "java.lang.Short"
case *uint16:
return "java.lang.Character"
case *int:
return "java.lang.Long"
case *int32:
return "java.lang.Integer"
case *int64:
return "java.lang.Long"
case *float32:
return "java.lang.Float"
case *float64:
return "java.lang.Double"
// Serialized tags for complex types
default:
t := reflect.TypeOf(v)
Expand Down

0 comments on commit b6ee982

Please sign in to comment.