Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.14.2
-
None
-
Camel Version: 3.14.2
Windows 10
AdoptOpenJDK\jdk-8.0.265.01-hotspot and AdoptOpenJDK\jdk-11.0.8+10
-
Unknown
Description
I am getting an exception if the clone method is invoked on an object (which has an implemented clone method) via simple language:
org.apache.camel.language.bean.RuntimeBeanExpressionException: Failed to invoke method: clone() on null due to:
- org.apache.camel.component.bean.MethodNotFoundException: Method with name: clone() not found on bean ...
Example code:
...
.to("language://simple:${body.clone()}")
...
For full example see attachment:
InvokeCloneTest.java
Same code worked with Camel 2.X