You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2026/06/19 14:46:00 UTC

[jira] [Updated] (CAMEL-23798) Simple language: replace AtomicBoolean/AtomicInteger with boolean[]/int[] lambda capture holders

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

Claus Ibsen updated CAMEL-23798:
--------------------------------
    Fix Version/s: 4.21.0

> Simple language: replace AtomicBoolean/AtomicInteger with boolean[]/int[] lambda capture holders
> ------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-23798
>                 URL: https://issues.apache.org/jira/browse/CAMEL-23798
>             Project: Camel
>          Issue Type: Improvement
>            Reporter: Adriano Machado
>            Priority: Minor
>             Fix For: 4.21.0
>
>
> SimpleExpressionParser and SimplePredicateParser used AtomicBoolean and AtomicInteger solely as mutable holders to capture state in lambda expressions. These are semantically misleading \(implying concurrent access\) and carry unnecessary overhead. This commit replaces them with single\-element boolean\[\] and int\[\] arrays, which are the idiomatic Java pattern for this use case.
> Discovered during the work on CAMEL\-22894 \(simple language parser hardening\).



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