This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch 3.2
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/3.2 by this push:
new f82629f7f9 Fix wrong returnTypes for StubMethodDescriptor (#13223)
f82629f7f9 is described below
commit f82629f7f979d34b33d6a4e1cf0d4a673d577122
Author: namelessssssssssss
<[email protected]>
AuthorDate: Wed Oct 18 09:44:56 2023 +0800
Fix wrong returnTypes for StubMethodDescriptor (#13223)
---
.../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);
}