MoChengqian commented on issue #3259:
URL: https://github.com/apache/dubbo-go/issues/3259#issuecomment-4162071033

   结论:无法调用,目前Dubbo-go不支持issue提供者说的这个 variadic 签名这种特殊场景.原因:dubbo-go 当前对 Go 
variadic 方法作为 RPC 服务签名 的**支持不完整**,导致 Java 客户端调用这个方法时不兼容.
   建议:完善框架特殊边界再告诉用户正确调用方式.
   边界不支持证明测试:
   1.模拟“Java 非泛化调用 variadic 方法时,服务端收到一个数组参数”的场景,并验证当前 dubbo-go 会失败测试:
   
   <img width="1358" height="553" alt="Image" 
src="https://github.com/user-attachments/assets/1eae9464-efbe-4106-855c-6505f39eeaff";
 />
   2.泛化调用,按多个独立字符串传,先在 generic filter 参数个数校验失败,失败验证Pass:
   
   <img width="1365" height="583" alt="Image" 
src="https://github.com/user-attachments/assets/16587c49-d58f-47fb-8be3-80b0b2cf9783";
 />
   3.泛化调用,按单个数组传,越过个数校验,但继续在 provider 反射层失败,失败验证Pass:
   
   <img width="1357" height="655" alt="Image" 
src="https://github.com/user-attachments/assets/ffdb2902-8c42-43b0-b300-36092e129862";
 />


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