From 280d54c07df26a6e8ba2f6cf2b805d6d3c103d8f Mon Sep 17 00:00:00 2001 From: August <33082727+Augustvic@users.noreply.github.com> Date: Thu, 2 Apr 2020 21:15:23 +0800 Subject: [PATCH] fix override when interfaces is not null(#5860) --- .../java/com/alibaba/dubbo/rpc/proxy/AbstractProxyFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dubbo-rpc/dubbo-rpc-api/src/main/java/com/alibaba/dubbo/rpc/proxy/AbstractProxyFactory.java b/dubbo-rpc/dubbo-rpc-api/src/main/java/com/alibaba/dubbo/rpc/proxy/AbstractProxyFactory.java index d27f6089709..20e2e408bcd 100644 --- a/dubbo-rpc/dubbo-rpc-api/src/main/java/com/alibaba/dubbo/rpc/proxy/AbstractProxyFactory.java +++ b/dubbo-rpc/dubbo-rpc-api/src/main/java/com/alibaba/dubbo/rpc/proxy/AbstractProxyFactory.java @@ -45,7 +45,7 @@ public T getProxy(Invoker invoker, boolean generic) throws RpcException { interfaces[0] = invoker.getInterface(); interfaces[1] = EchoService.class; for (int i = 0; i < types.length; i++) { - interfaces[i + 1] = ReflectUtils.forName(types[i]); + interfaces[i + 2] = ReflectUtils.forName(types[i]); } } }