You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "tiltwind (via GitHub)" <gi...@apache.org> on 2023/11/26 08:57:48 UTC

[I] nil encoding not correct [dubbo-go-hessian2]

tiltwind opened a new issue, #369:
URL: https://github.com/apache/dubbo-go-hessian2/issues/369

   
   **What happened**:
   In the previous implementation, dubbo-go-hessian2 would encode nil values of a specified type as empty bytes.
   
   For example:
   ```go
   var null *int = nil
   
   e := NewEncoder()
   e.Encode(null)
   
   len(e.buffer) == 0  // true
   ```
   
   However, the expected encoding for nil values should be []byte("N"), regardless of the type of nil value.
   
   
   
   
   **What you expected to happen**:
    It encodes nil values of any type as []byte("N").
   
   **How to reproduce it (as minimally and precisely as possible)**:
   
   **Anything else we need to know?**:
   


-- 
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: notifications-unsubscribe@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] nil encoding not correct [dubbo-go-hessian2]

Posted by "Alanxtl (via GitHub) via notifications" <no...@dubbo.apache.org>.
Alanxtl closed issue #369: nil encoding not correct
URL: https://github.com/apache/dubbo-go-hessian2/issues/369


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org