From b7bb99449565ac7ca55c1d7377ec3177f3fd9993 Mon Sep 17 00:00:00 2001 From: teaey Date: Wed, 23 Dec 2015 20:46:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=A6=82=E6=9E=9C=E5=A4=9A?= =?UTF-8?q?=E4=B8=AA=E7=B1=BB=E6=8B=A5=E6=9C=89=E7=9B=B8=E5=90=8C=E7=9A=84?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E4=BB=A5=E5=8F=8A=E6=96=B9=E6=B3=95=E7=AD=BE?= =?UTF-8?q?=E5=90=8D=E5=92=8C=E8=BF=94=E5=9B=9E=E5=80=BC=E7=9A=84=E6=83=85?= =?UTF-8?q?=E5=86=B5=E4=B8=8B,=E4=BC=9A=E9=80=A0=E6=88=90=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E8=A6=86=E7=9B=96=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 感谢https://github.com/jessyZu 提出这个issue --- .../java/com/alibaba/dubbo/common/utils/ReflectUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dubbo-common/src/main/java/com/alibaba/dubbo/common/utils/ReflectUtils.java b/dubbo-common/src/main/java/com/alibaba/dubbo/common/utils/ReflectUtils.java index ccd6aa7b965..0a8fce6bc77 100644 --- a/dubbo-common/src/main/java/com/alibaba/dubbo/common/utils/ReflectUtils.java +++ b/dubbo-common/src/main/java/com/alibaba/dubbo/common/utils/ReflectUtils.java @@ -784,9 +784,9 @@ private static Class[] desc2classArray(ClassLoader cl, String desc) throws Cl */ public static Method findMethodByMethodSignature(Class clazz, String methodName, String[] parameterTypes) throws NoSuchMethodException, ClassNotFoundException { - String signature = methodName; + String signature = clazz.getName() + "."; if(parameterTypes != null && parameterTypes.length > 0){ - signature = methodName + StringUtils.join(parameterTypes); + signature += StringUtils.join(parameterTypes); } Method method = Signature_METHODS_CACHE.get(signature); if(method != null){