Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-11533

Simple language - comparison againist negative value fails with unknown token

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.18.5, 2.19.2, 2.20.0
    • camel-core
    • None
    • Unknown

    Description

      from("seda:test")
           .choice()
              .when()
                 .simple("${in.body.someval} == -1}").to("mock:mock1")
              .otherwise()
                 .to("mock:mock2")
              .endChoice();
      

      ends with

      org.apache.camel.language.simple.types.SimpleIllegalSyntaxException: Binary operator == does not support token -

      this can be improved to note - sign

      Attachments

        Issue Links

          Activity

            People

              onders Onder Sezgin
              onders Onder Sezgin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: