You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2013/05/26 13:10:20 UTC

[jira] [Assigned] (CAMEL-5252) Simple language - Improved OGNL invocation with simple expression as functions for parameters

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

Claus Ibsen reassigned CAMEL-5252:
----------------------------------

    Assignee: Claus Ibsen
    
> Simple language - Improved OGNL invocation with simple expression as functions for parameters
> ---------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5252
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5252
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.9.2
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: Future
>
>
> See nabble
> http://camel.465427.n5.nabble.com/Invoking-a-bean-returned-by-a-previous-bean-invocation-tp5676696.html
> The example with the nested animal parameter.
> We should see if we can better detect this use-case, and avoid the intermediate String conversion, when its a parameter type.
> {code}
>        public void testBodyOgnlOnAnimalWithOgnlParams() throws Exception {
>                exchange.getIn().setBody(new Animal("tiger", 13));
>                exchange.getIn().setHeader("friend", new Animal("donkey", 4));
>                assertExpression("${body.setFriend(${header.friend})}", null);
>        }
> {code}
> Fails with org.apache.camel.NoTypeConversionAvailableException: No type
> converter available to convert from type: java.lang.String to the required
> type: org.apache.camel.language.simple.SimpleTest.Animal with value donkey

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira