You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henri Biestro (Jira)" <ji...@apache.org> on 2021/06/29 07:00:03 UTC

[jira] [Closed] (JEXL-194) allow synchronization on iterableValue in foreach statement

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

Henri Biestro closed JEXL-194.
------------------------------

> allow synchronization on iterableValue in foreach statement
> -----------------------------------------------------------
>
>                 Key: JEXL-194
>                 URL: https://issues.apache.org/jira/browse/JEXL-194
>             Project: Commons JEXL
>          Issue Type: Improvement
>    Affects Versions: 3.0
>            Reporter: Dmitri Blinov
>            Assignee: Henri Biestro
>            Priority: Minor
>             Fix For: 3.1
>
>
> Since it is a requirement to synchronize on simple Collections and synchronized Collections while iterating over them and since jexl has no instrument to control synchronization in script, I think its reasonable to implement synchronization in jexl itself on iterableValue. In case of concurrent collections it will possibly block other threads only if they are synchronizing on those collections themselves, which will be complementary to required synchronization in jexl.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)