You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Alan Foster (JIRA)" <ji...@apache.org> on 2014/03/16 21:59:42 UTC

[jira] [Created] (CAMEL-7298) Simple Language - Logical Expression Equality Fails

Alan Foster created CAMEL-7298:
----------------------------------

             Summary: Simple Language - Logical Expression Equality Fails
                 Key: CAMEL-7298
                 URL: https://issues.apache.org/jira/browse/CAMEL-7298
             Project: Camel
          Issue Type: Bug
    Affects Versions: 2.12.3
         Environment: Windows 8.1
            Reporter: Alan Foster


When writing the following code, the expression {code}${headers.true} == ${headers.true}{code} evaluates to false - rather than the expected true.

{code:xml}
    <camelContext trace="false" xmlns="http://camel.apache.org/schema/blueprint">
        <route>
            <from uri="direct:entry"/>

            <setHeader headerName="true">
                <constant>true</constant>
            </setHeader>

            <setBody>
                <simple resultType="java.lang.Boolean">${headers.true} == ${headers.true}</simple>
            </setBody>

            <log message="The expression evaluated to :: ${body}" />

        </route>
    </camelContext>
{code}

{code}
[                          main] route1                         INFO  The expression evaluated to :: false
{code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)