Skip to content

Commit e75d72c

Browse files
tswstarplanetkhanimteyaz
authored andcommitted
[dubbo-2766] fix the bug of isMatch method of InvokeTelnetHandler (apache#2787)
1 parent 8daad25 commit e75d72c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/telnet/InvokeTelnetHandler.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ private static boolean isMatch(Class<?>[] types, List<Object> args) {
8787
if (!ReflectUtils.isPrimitive(type)) {
8888
return false;
8989
}
90+
Class<?> boxedType = ReflectUtils.getBoxedClass(type);
91+
if (boxedType != arg.getClass()) {
92+
return false;
93+
}
9094
} else if (arg instanceof Map) {
9195
String name = (String) ((Map<?, ?>) arg).get("class");
9296
Class<?> cls = arg.getClass();

0 commit comments

Comments
 (0)