You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2022/03/03 09:35:53 UTC
[dubbo] branch 3.0 updated: [3.0] Remove attribute pass when Injvm invoke (#9734)
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 1a52091 [3.0] Remove attribute pass when Injvm invoke (#9734)
1a52091 is described below
commit 1a52091aa2c85c27afadaf08f344f7dd95075d35
Author: Albumen Kevin <jh...@gmail.com>
AuthorDate: Thu Mar 3 17:35:10 2022 +0800
[3.0] Remove attribute pass when Injvm invoke (#9734)
---
.../org/apache/dubbo/rpc/protocol/injvm/DefaultParamDeepCopyUtil.java | 2 +-
.../main/java/org/apache/dubbo/rpc/protocol/injvm/InjvmInvoker.java | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dubbo-rpc/dubbo-rpc-injvm/src/main/java/org/apache/dubbo/rpc/protocol/injvm/DefaultParamDeepCopyUtil.java b/dubbo-rpc/dubbo-rpc-injvm/src/main/java/org/apache/dubbo/rpc/protocol/injvm/DefaultParamDeepCopyUtil.java
index c2af281..8e3f6ca 100644
--- a/dubbo-rpc/dubbo-rpc-injvm/src/main/java/org/apache/dubbo/rpc/protocol/injvm/DefaultParamDeepCopyUtil.java
+++ b/dubbo-rpc/dubbo-rpc-injvm/src/main/java/org/apache/dubbo/rpc/protocol/injvm/DefaultParamDeepCopyUtil.java
@@ -51,7 +51,7 @@ public class DefaultParamDeepCopyUtil implements ParamDeepCopyUtil {
logger.error("Unable to deep copy parameter to target class.", e);
}
- } catch (IOException e) {
+ } catch (Throwable e) {
logger.error("Unable to deep copy parameter to target class.", e);
}
diff --git a/dubbo-rpc/dubbo-rpc-injvm/src/main/java/org/apache/dubbo/rpc/protocol/injvm/InjvmInvoker.java b/dubbo-rpc/dubbo-rpc-injvm/src/main/java/org/apache/dubbo/rpc/protocol/injvm/InjvmInvoker.java
index 7f82aae..313e9e2 100644
--- a/dubbo-rpc/dubbo-rpc-injvm/src/main/java/org/apache/dubbo/rpc/protocol/injvm/InjvmInvoker.java
+++ b/dubbo-rpc/dubbo-rpc-injvm/src/main/java/org/apache/dubbo/rpc/protocol/injvm/InjvmInvoker.java
@@ -164,7 +164,7 @@ public class InjvmInvoker<T> extends AbstractInvoker<T> {
RpcInvocation copiedInvocation = new RpcInvocation(invocation.getTargetServiceUniqueName(),
providerServiceModel, methodName, invocation.getServiceName(), invocation.getProtocolServiceKey(),
invocation.getParameterTypes(), invocation.getArguments(), new HashMap<>(invocation.getObjectAttachments()),
- invocation.getInvoker(), invocation.getAttributes());
+ invocation.getInvoker(), new HashMap<>());
copiedInvocation.setInvoker(invoker);
return copiedInvocation;
}
@@ -193,7 +193,7 @@ public class InjvmInvoker<T> extends AbstractInvoker<T> {
RpcInvocation copiedInvocation = new RpcInvocation(invocation.getTargetServiceUniqueName(),
providerServiceModel, methodName, invocation.getServiceName(), invocation.getProtocolServiceKey(),
pts, realArgument, new HashMap<>(invocation.getObjectAttachments()),
- invocation.getInvoker(), invocation.getAttributes());
+ invocation.getInvoker(), new HashMap<>());
copiedInvocation.setInvoker(invoker);
return copiedInvocation;
} finally {