Skip to content

Commit

Permalink
解决如果多个类拥有相同的方法以及方法签名和返回值的情况下,会造成方法覆盖的问题
Browse files Browse the repository at this point in the history
感谢https://github.com/jessyZu 提出这个issue
  • Loading branch information
teaey committed Dec 23, 2015
1 parent b7bb994 commit 405003a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ 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 = clazz.getName() + ".";
String signature = clazz.getName() + "." + methodName;
if(parameterTypes != null && parameterTypes.length > 0){
signature += StringUtils.join(parameterTypes);
}
Expand Down

0 comments on commit 405003a

Please sign in to comment.