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

Simple language - comparison againist negative value fails with unknown token

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.18.5, 2.19.2, 2.20.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: