[
https://issues.apache.org/jira/browse/CAMEL-24407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18110245#comment-18110245
]
Ivan Ravin commented on CAMEL-24407:
------------------------------------
please check this case too
{code:java}
from("timer:test?repeatCount=1&delay=1000")
.setHeader("Account1").constant("0001")
.setHeader("Account2").constant("001")
.filter().simple("${header.Account1} == ${header.Account2}")
.log(LoggingLevel.ERROR, "Accounts are not equals")
.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, 4.18.2
> Reporter: Ivan Ravin
> Assignee: Karol Krawczyk
> Priority: Major
> Fix For: 4.18.5, 4.22.1, 4.23.0
>
>
> 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)