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 2021/03/14 06:19:51 UTC

[dubbo] branch master updated: Fix DecodeableRpcResult override attachments (#6590)

This is an automated email from the ASF dual-hosted git repository.

albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/master by this push:
     new 6104ef1  Fix DecodeableRpcResult override attachments (#6590)
6104ef1 is described below

commit 6104ef18034f03ad88d7d5c2c3cf91ca0660d361
Author: wangxw <24...@qq.com>
AuthorDate: Sun Mar 14 14:19:35 2021 +0800

    Fix DecodeableRpcResult override attachments (#6590)
    
    Co-authored-by: wangxiaowei14227 <wa...@autohome.com.cn>
---
 .../java/org/apache/dubbo/rpc/protocol/dubbo/DecodeableRpcResult.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/DecodeableRpcResult.java b/dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/DecodeableRpcResult.java
index 3ac302d..30ee3a0 100644
--- a/dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/DecodeableRpcResult.java
+++ b/dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/DecodeableRpcResult.java
@@ -172,7 +172,7 @@ public class DecodeableRpcResult extends AppResponse implements Codec, Decodeabl
 
     private void handleAttachment(ObjectInput in) throws IOException {
         try {
-            setObjectAttachments(in.readAttachments());
+            addObjectAttachments(in.readAttachments());
         } catch (ClassNotFoundException e) {
             rethrow(e);
         }