[ 
https://issues.apache.org/jira/browse/CAMEL-24407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ivan Ravin updated CAMEL-24407:
-------------------------------
    Description: 
Simple language predicate fails with NumberFormatException when comparing long 
digital strings (for example, bank accounts). It worked at least in camel 2, 
but not in camel 4
{code:java}
from("timer:test?repeatCount=1&delay=1000")
.setHeader("Account1").constant("12345678901234567890")
.setHeader("Account2").constant("12345678901234567890")
.filter().simple("${header.Account1} == ${header.Account2}")
        .log(org.apache.camel.LoggingLevel.INFO, "Accounts equals")
.end();
{code}

  was:
Simple language predicate fails with NumberFormatException when comparing long 
digital strings (for example, bank accounts). It worked at least in camel 2, 
but not in camel 4
{code:java}
from("timer:test?repeatCount=1&delay=1000")
.setHeader("Account1").constant("12345678901234567890")
.setHeader("Account2").constant("12345678901234567890")
.filter().simple("${header.Account1} == ${header.Account2}")
        .log(org.apache.camel.LoggingLevel.INFO, "TestRoute.cLog_1", "${body}")
.end();
{code}


> simple predicate fails for long digital strings
> -----------------------------------------------
>
>                 Key: CAMEL-24407
>                 URL: https://issues.apache.org/jira/browse/CAMEL-24407
>             Project: Camel
>          Issue Type: Bug
>          Components: came-core
>    Affects Versions: 4.10.7
>            Reporter: Ivan Ravin
>            Priority: Major
>
> Simple language predicate fails with NumberFormatException when comparing 
> long digital strings (for example, bank accounts). It worked at least in 
> camel 2, but not in camel 4
> {code:java}
> from("timer:test?repeatCount=1&delay=1000")
> .setHeader("Account1").constant("12345678901234567890")
> .setHeader("Account2").constant("12345678901234567890")
> .filter().simple("${header.Account1} == ${header.Account2}")
>       .log(org.apache.camel.LoggingLevel.INFO, "Accounts equals")
> .end();
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to