This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/3.0 by this push:
new 63d319b make method and methodName first set. (#7786)
63d319b is described below
commit 63d319b60ec8962e7f82df77405866309c42da41
Author: 赵延 <[email protected]>
AuthorDate: Wed May 19 22:11:49 2021 +0800
make method and methodName first set. (#7786)
---
.../src/main/java/org/apache/dubbo/rpc/model/MethodDescriptor.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/dubbo-common/src/main/java/org/apache/dubbo/rpc/model/MethodDescriptor.java
b/dubbo-common/src/main/java/org/apache/dubbo/rpc/model/MethodDescriptor.java
index 6ada135..f394ed6 100644
---
a/dubbo-common/src/main/java/org/apache/dubbo/rpc/model/MethodDescriptor.java
+++
b/dubbo-common/src/main/java/org/apache/dubbo/rpc/model/MethodDescriptor.java
@@ -53,6 +53,7 @@ public class MethodDescriptor {
public MethodDescriptor(Method method) {
this.method = method;
+ this.methodName = method.getName();
Class<?>[] parameterTypes = method.getParameterTypes();
if (parameterTypes.length == 1 && isStreamType(parameterTypes[0])) {
this.parameterClasses = new Class<?>[]{
@@ -78,7 +79,6 @@ public class MethodDescriptor {
this.compatibleParamSignatures = Stream.of(parameterClasses)
.map(Class::getName)
.toArray(String[]::new);
- this.methodName = method.getName();
this.generic = (methodName.equals($INVOKE) ||
methodName.equals($INVOKE_ASYNC)) && parameterClasses.length == 3;
}