Skip to content

Commit

Permalink
[dubbo-2766] fix the bug of isMatch method of InvokeTelnetHandler (#2787
Browse files Browse the repository at this point in the history
)
  • Loading branch information
tswstarplanet authored and beiwei30 committed Dec 11, 2018
1 parent 795a840 commit 6f6ef6c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ private static boolean isMatch(Class<?>[] types, List<Object> args) {
if (!ReflectUtils.isPrimitive(type)) {
return false;
}
Class<?> boxedType = ReflectUtils.getBoxedClass(type);
if (boxedType != arg.getClass()) {
return false;
}
} else if (arg instanceof Map) {
String name = (String) ((Map<?, ?>) arg).get("class");
Class<?> cls = arg.getClass();
Expand Down

0 comments on commit 6f6ef6c

Please sign in to comment.