Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.15.0
-
Component/s: camel-core
-
Labels:None
-
Estimated Complexity: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
Issue Links
- is broken by
-
CAMEL-8137 Simple language does not resolve overloaded method calls
-
- Resolved
-