This is an automated email from the ASF dual-hosted git repository.
liujun 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 0f4cbd9 Fix compile error of Jsonrpc Protocol
0f4cbd9 is described below
commit 0f4cbd984cbcad683146c4202c78024564e5d0b7
Author: ken.lj <[email protected]>
AuthorDate: Wed Feb 5 15:55:03 2020 +0800
Fix compile error of Jsonrpc Protocol
---
.../org/apache/dubbo/rpc/protocol/http/JsonRemoteInvocation.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git
a/dubbo-rpc/dubbo-rpc-http/src/main/java/org/apache/dubbo/rpc/protocol/http/JsonRemoteInvocation.java
b/dubbo-rpc/dubbo-rpc-http/src/main/java/org/apache/dubbo/rpc/protocol/http/JsonRemoteInvocation.java
index 1e0b426..e038726 100644
---
a/dubbo-rpc/dubbo-rpc-http/src/main/java/org/apache/dubbo/rpc/protocol/http/JsonRemoteInvocation.java
+++
b/dubbo-rpc/dubbo-rpc-http/src/main/java/org/apache/dubbo/rpc/protocol/http/JsonRemoteInvocation.java
@@ -17,9 +17,10 @@
package org.apache.dubbo.rpc.protocol.http;
-import org.aopalliance.intercept.MethodInvocation;
import org.apache.dubbo.common.utils.StringUtils;
import org.apache.dubbo.rpc.RpcContext;
+
+import org.aopalliance.intercept.MethodInvocation;
import org.springframework.remoting.support.RemoteInvocation;
import java.lang.reflect.InvocationTargetException;
@@ -44,7 +45,7 @@ public class JsonRemoteInvocation extends RemoteInvocation {
public Object invoke(Object targetObject) throws NoSuchMethodException,
IllegalAccessException,
InvocationTargetException {
RpcContext context = RpcContext.getContext();
- context.setAttachments((Map<String, String>)
getAttribute(DUBBO_ATTACHMENTS_ATTR_NAME));
+ context.setAttachments((Map<String, Object>)
getAttribute(DUBBO_ATTACHMENTS_ATTR_NAME));
String generic = (String) getAttribute(GENERIC_KEY);
if (StringUtils.isNotEmpty(generic)) {