XiaoFeiASK commented on PR #3618:
URL: https://github.com/apache/dubbo-go/pull/3618#issuecomment-5252755387

   新增修改:
   - filter/generic/filter.go  
   问题:GenericService.Invoke 的 raw any 返回在 gson / protobuf-json 模式下会被误做 typed 
realization,导致原本应直接返回的 raw JSON 变成 RPC 错误。  
   修复:当 reply 为 interface{} / any 且结果可直接赋值时,直接保留 raw result,跳过 typed 
realization。  
   影响:恢复 Invoke 的 raw 返回语义,避免破坏公开泛化调用 API。
   - filter/generic/generalizer/gson.go  
   问题:Gson realization 在 var reply *User; InvokeWithType(..., &reply) 场景下会把 
*User 继续作为目标类型创建,导致 **User 无法满足 hessian.POJO。  
   修复:在 Gson realization 前剥离 pointer 层级,与 Protobuf-JSON 的处理方式保持一致。  
   影响:支持 Gson typed result 的 **T reply 场景,修复 InvokeWithType 指针返回失败问题。
   - client/client_test.go / filter/generic/*_test.go / 
filter/generic/generalizer/gson_test.go  
   问题:缺少 NewGenericService -> Invoke raw 返回,以及 Gson **T reply 的回归覆盖。  
   修复:补充 raw gson / protobuf-json 返回测试、Gson pointer reply 测试,并修正 Gson pointer 
测试使用真实 GsonGeneralizer。  
   影响:覆盖两个遗留 P1 评论对应的公开 API 回归场景,降低后续改动再次破坏的风险。


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