DMwangnima opened a new issue, #2517:
URL: https://github.com/apache/dubbo-go/issues/2517

   ### Environment
   
   - Server: Dubbo-go, v3.1.0
   - Client: Dubbo-go, v3.1.0
   - Protocol: Dubbo
   
   ### Issue description
   
   <!-- Here is a brief description about the issue. -->
   
   #### defining API
   ```go
   type UserProvider struct {
       Echo func(ctx context.Context, req *int32) (*int32, error)
   }
   ```
   
   #### client logic
   ```
   resp, err := cli.Echo(context.Background(), (*int32)(nil))
   ```
   
   #### dubbo-go-hessian2
   <img width="873" alt="image" 
src="https://github.com/apache/dubbo-go/assets/33331974/13d14ee5-ef33-45ba-aa4e-982e88d5631d";>
   
   Judging ```v == nil``` is not enough since ```(*int32)(nil)``` has type 
information.
   
   #### dubbo-go
   /protocol/dubbo/impl/hessian.go
   <img width="761" alt="image" 
src="https://github.com/apache/dubbo-go/assets/33331974/21f11321-348a-4c84-b0b5-9f5c4795be68";>
   
   ignore encoding error does not make any sense.
   
   ### Logs
   
   <details><summary>Click me to check logs</summary>
   
   ```
   Copy logs to here.
   ```
   
   </details>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to