leno23 opened a new pull request, #3378: URL: https://github.com/apache/dubbo-go/pull/3378
### Description Fixes #3361. This PR migrates Dubbo generic exception handling to the type provided by `dubbo-go-hessian2`: - removes the local `GenericException` struct from `protocol/dubbo/hessian2` - makes `ToGenericException` return `*java_exception.DubboGenericException` - updates response encoding paths to encode the hessian2 exception type directly - updates tests to assert that decoded generic exceptions use the hessian2 type ### Validation - `go test ./protocol/dubbo/hessian2 -run 'TestToGenericExceptionUsesHessianExceptionType|TestIsSupportResponseAttachment|TestVersion2Int'` - `go test ./protocol/dubbo/impl -run 'TestHessianSerializer|TestMarshalResponse|TestUnmarshalResponseBody'` - `go test ./protocol/dubbo/hessian2 ./protocol/dubbo/impl` - `git diff --check` ### Checklist - [x] I confirm the target branch is `main` - [x] Code has passed local testing - [x] I have added tests that prove my fix is effective or that my feature works -- 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]
