We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e140c06 commit 43478c1Copy full SHA for 43478c1
1 file changed
dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/support/RpcUtils.java
@@ -244,9 +244,7 @@ public static boolean isOneway(URL url, Invocation inv) {
244
245
private static Method getMethodByService(Invocation invocation, String service) throws NoSuchMethodException {
246
Class<?> invokerInterface = invocation.getInvoker().getInterface();
247
- Class<?> cls = invokerInterface != null
248
- ? ReflectUtils.forName(invokerInterface.getClassLoader(), service)
249
- : ReflectUtils.forName(service);
+ Class<?> cls = invokerInterface != null ? invokerInterface : ReflectUtils.forName(service);
250
Method method = cls.getMethod(invocation.getMethodName(), invocation.getParameterTypes());
251
if (method.getReturnType() == void.class) {
252
return null;
0 commit comments