You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Adriano Machado (Jira)" <ji...@apache.org> on 2026/06/21 01:58:00 UTC
[jira] [Resolved] (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 ]
Adriano Machado resolved CAMEL-23798.
-------------------------------------
Fix Version/s: (was: 4.21.0)
Resolution: Won't Fix
PR #24120 closed
> 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
> Assignee: Adriano Machado
> Priority: Minor
>
> 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)