Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.15.0
-
None
-
Unknown
Description
When BeanInfo introspects class which implements a interface with one method, implemented method is filtered out and no invocation of the method is possible.
Interface
public interface RequestMessageTranslator<I, O> { O translate(I in); }
Implementation
public class RequestMessageTranslatorImpl implements RequestMessageTranslator<String, String> { public String translate(String in) { return null; } }
Then calling the class from route:
from(ROUTE_ID) .id(ROUTE_ID) .bean(requestMessageTranslator)
ends with:
Caused by: java.lang.IllegalStateException: No method invocation could be created, no matching method could be found on: RequestMessageTranslator@402fbbaf at org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:165)
Attachments
Attachments
Issue Links
- is broken by
-
CAMEL-8137 Simple language does not resolve overloaded method calls
- Resolved