paxxie2 commented on code in PR #15292: URL: https://github.com/apache/dubbo/pull/15292#discussion_r2034442702
########## dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/rest/mapping/DefaultRequestMappingRegistry.java: ########## @@ -130,6 +130,12 @@ public void register(Invoker<?> invoker) { consumer.accept((methods) -> { Method method = methods.get(0); MethodDescriptor md = sd.getMethod(method.getName(), method.getParameterTypes()); + if (md == null) { + String originMethodName = method.getName(); + String upperMethod = Review Comment: 1. Add a method name length check is possible. 2. After testing , when there is only one character, there will be no problem. 3. I will consider resolving this issue by modifying the dubbo-compiler or DefaultRequestMappingRegistry, taking into account the comprehensive impact scope and conducting thorough testing -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For additional commands, e-mail: notifications-h...@dubbo.apache.org