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

Claus Ibsen resolved CAMEL-4647.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.9.0
                   2.8.3
    
> Simple expression does not find method toString()
> -------------------------------------------------
>
>                 Key: CAMEL-4647
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4647
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.0
>         Environment: camel 2.8.0
>            Reporter: Roman Stumm
>            Assignee: Claus Ibsen
>             Fix For: 2.8.3, 2.9.0
>
>
> In a route builder, we have a log definition: 
> from("direct:testSimple")
>  .log("${body.toString}");
> The body contains an object, that implements a public toString() method. But 
> the problem is, that the simple-expression does not find the method 
> toString() and route processing stops without throwing an exception.
> The funny thing is, that when we just rename the method, e.g. toInfoString(), 
> then it works:
> from("direct:testSimple")
>  .log("${body.toInfoString}");
> Why does simple expression have a problem with a method named "toString"?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to