alpha-baby opened a new issue, #343:
URL: https://github.com/apache/dubbo-go-hessian2/issues/343

   <!-- Please only use this template for submitting enhancement requests -->
   
   **What would you like to be added**:
   
   **Why is this needed**:
   
   在 java 中把这个结构序列化出来:
   
   ```java
           Object[] as = new Object[1];
           List l = new LinkedList();
           l.add("123");
           l.add("456");
           as[0] = l;
   ```
   
   ```
   java:
   00000000  71 07 5b 6f 62 6a 65 63  74 72 14 6a 61 76 61 2e  
|q.[objectr.java.|
   00000010  75 74 69 6c 2e 4c 69 6e  6b 65 64 4c 69 73 74 03  
|util.LinkedList.|
   00000020  31 32 33 03 34 35 36                              |123.456|
   ```
   
   golang 这个接口序列化出来是:
   
   ```
   encoder.Encode([]interface{}{[]string{"123", "123"}})
   ```
   
   ```
   golang:
   00000000  58 91 56 07 5b 73 74 72  69 6e 67 92 03 31 32 33  
|X.V.[string..123|
   00000010  03 31 32 33                                       |.123|
   ```
   
   java 把 Object[] 序列化,为了TypedList, 但是 golang 把 interface{} 切片序列化为了 UntypedList 
这个又是为什么呢?


-- 
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