Snow-kal opened a new issue, #388:
URL: https://github.com/apache/dubbo-go-hessian2/issues/388

   1. 背景
   
   在 dubbo-go 项目的 PR  https://github.com/apache/dubbo-go/pull/3183 (为适配 
https://github.com/apache/dubbo-go/issues/3167 「完善泛化调用功能,补齐与 Java 版本的差距」)中,新增了 
GenericException 结构体,用于在 Hessian2 序列化 / 反序列化链路中保留 Java 
异常的类名(ExceptionClass)和消息(ExceptionMessage),解决了仅返回字符串导致异常类型信息丢失的问题
   
   经评审建议:GenericException 属于 Hessian2 序列化协议层的通用异常定义,而非 dubbo-go 业务层逻辑,更适合内聚到 
dubbo-go-hessian2 项目
   
   当前状态:dubbo-go 侧的 GenericException 代码已被 merge,需后续完成迁移优化,避免核心协议层定义散落在业务项目中
   
   2. 目标
   
   将 dubbo-go 中 protocol/dubbo/hessian2/hessian_response.go 内的 GenericException 
结构体迁移至 dubbo-go-hessian2 核心库
   
   3. 待办
   
   - [ ] 阶段 1:
   
   在 dubbo-go-hessian2 中新增 GenericException 定义,在 dubbo-go-hessian2 项目中新建 / 
复用合适的文件(如 exception.go 或 generic.go),新增 GenericException 结构体,保持字段与 dubbo-go 
侧一致且兼容 Java 端
   
   - [ ] 阶段2:
   
    删除 dubbo-go 中 protocol/dubbo/hessian2/hessian_response.go 内的 
GenericException 结构体定义(避免重复)。
    修改 dubbo-go 所有引用 GenericException 的文件的导入路径


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