Skip to content

Commit

Permalink
Fix stub proxy does not work cause of ProxyFactory.getProxy change (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
qinliujie authored Mar 9, 2020
1 parent 4037b5d commit 5297133
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,7 @@ public void setProtocol(Protocol protocol) {

@Override
public <T> T getProxy(Invoker<T> invoker, boolean generic) throws RpcException {
return proxyFactory.getProxy(invoker, generic);
}

@Override
@SuppressWarnings({"unchecked", "rawtypes"})
public <T> T getProxy(Invoker<T> invoker) throws RpcException {
T proxy = proxyFactory.getProxy(invoker);
T proxy = proxyFactory.getProxy(invoker, generic);
if (GenericService.class != invoker.getInterface()) {
URL url = invoker.getUrl();
String stub = url.getParameter(STUB_KEY, url.getParameter(LOCAL_KEY));
Expand Down Expand Up @@ -111,6 +105,13 @@ public <T> T getProxy(Invoker<T> invoker) throws RpcException {
}
}
return proxy;

}

@Override
@SuppressWarnings({"unchecked", "rawtypes"})
public <T> T getProxy(Invoker<T> invoker) throws RpcException {
return getProxy(invoker, false);
}

@Override
Expand Down

0 comments on commit 5297133

Please sign in to comment.