camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAMEL-655) Jython Expressions always return null/false
Date Thu, 03 Jul 2008 08:41:00 GMT

    [ https://issues.apache.org/activemq/browse/CAMEL-655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43888#action_43888
] 

Willem Jiang commented on CAMEL-655:
------------------------------------

Jython engin.eval("print a") always return null,
I got a way to walk around it by set the result value to result variable.

Please check the latest camel svn trunk for more information.



> Jython Expressions always return null/false
> -------------------------------------------
>
>                 Key: CAMEL-655
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-655
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-script
>    Affects Versions: 1.3.0, 1.4.0
>         Environment: Jython 2.2.1, camel-script 1.3.0/1.4.0-SNAPSHOT, jython integration
lib from java.net or logicblaze.com repo
>            Reporter: Aaron Mulder
>            Assignee: Willem Jiang
>
> A Jython expression used for example like this always returns null, which is now translated
to false:
> from("...").choice().when().jython("some expression").to(...)
> For example, here's an expression that always evaluates to null/false:
> request.headers['foo'] == 'bar'
> To see this, look at the test PythonExpressionTest in the camel-script module.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message