This is an automated email from the ASF dual-hosted git repository.
earthchen pushed a commit to branch 3.3
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/3.3 by this push:
new 027aba599e Fix wrong return types for StubMethodDescriptor (#13200)
027aba599e is described below
commit 027aba599eea6acd03635d520d68d3309c76157d
Author: namelessssssssssss
<[email protected]>
AuthorDate: Tue Oct 17 16:57:31 2023 +0800
Fix wrong return types for StubMethodDescriptor (#13200)
---
.../src/main/java/org/apache/dubbo/rpc/model/StubMethodDescriptor.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/dubbo-common/src/main/java/org/apache/dubbo/rpc/model/StubMethodDescriptor.java
b/dubbo-common/src/main/java/org/apache/dubbo/rpc/model/StubMethodDescriptor.java
index af294d35e4..a98ef742f2 100644
---
a/dubbo-common/src/main/java/org/apache/dubbo/rpc/model/StubMethodDescriptor.java
+++
b/dubbo-common/src/main/java/org/apache/dubbo/rpc/model/StubMethodDescriptor.java
@@ -63,7 +63,7 @@ public class StubMethodDescriptor implements
MethodDescriptor, PackableMethod {
this.returnClass = responseClass;
this.paramDesc = ReflectUtils.getDesc(parameterClasses);
this.compatibleParamSignatures =
Stream.of(parameterClasses).map(Class::getName).toArray(String[]::new);
- this.returnTypes = new Type[]{requestClass, requestClass};
+ this.returnTypes = new Type[]{responseClass, responseClass};
serviceDescriptor.addMethod(this);
}