Fix wrong return types for StubMethodDescriptor (#13200)

This commit is contained in:
namelessssssssssss 2023-10-17 16:57:31 +08:00 committed by GitHub
parent 3e50bdd16f
commit 027aba599e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}