[ 
https://issues.apache.org/jira/browse/CAMEL-17999?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen updated CAMEL-17999:
--------------------------------
    Component/s: camel-core
                     (was: camel-language)

> Simple Language: Invoke clone() method
> --------------------------------------
>
>                 Key: CAMEL-17999
>                 URL: https://issues.apache.org/jira/browse/CAMEL-17999
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 3.14.2
>         Environment: Camel Version: 3.14.2
> Windows 10
> AdoptOpenJDK\jdk-8.0.265.01-hotspot and AdoptOpenJDK\jdk-11.0.8+10
>            Reporter: Steffen Brauns
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 3.18.0
>
>         Attachments: InvokeCloneTest.java
>
>
> 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



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to