You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/07/12 07:43:00 UTC

[jira] [Commented] (CAMEL-11533) Simple language - comparison againist negative value fails with unknown token

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

ASF GitHub Bot commented on CAMEL-11533:
----------------------------------------

GitHub user onders86 opened a pull request:

    https://github.com/apache/camel/pull/1820

    CAMEL-11533 - note "-" sign doing binary comparison against negative …

    …value

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/onders86/camel CAMEL-11533

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/1820.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1820
    
----
commit 7f6a913f8a21300a7ffbadc7c3203749e11b13bf
Author: onders86 <on...@gmail.com>
Date:   2017-07-12T04:40:16Z

    CAMEL-11533 - note "-" sign doing binary comparison against negative value

----


> Simple language - comparison againist negative value fails with unknown token
> -----------------------------------------------------------------------------
>
>                 Key: CAMEL-11533
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11533
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: onder sezgin
>            Assignee: onder sezgin
>            Priority: Minor
>             Fix For: 2.20.0
>
>
> {code}
> from("seda:test")
>      .choice()
>         .when()
>            .simple("${in.body.someval} == -1}").to("mock:mock1")
>         .otherwise()
>            .to("mock:mock2")
>         .endChoice();
> {code}
> ends with 
> org.apache.camel.language.simple.types.SimpleIllegalSyntaxException: Binary operator == does not support token - 
> this can be improved to note - sign



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)