commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Biestro (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (JEXL-194) synchronize on iterableValue in foreach statement
Date Thu, 09 Jun 2016 20:18:21 GMT

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

Henri Biestro resolved JEXL-194.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.1

Added overload handling of forEach method operator in JexlArithmetic;

src/main/java/org/apache/commons/jexl3/JexlOperator.java
src/main/java/org/apache/commons/jexl3/internal/Interpreter.java
src/main/java/org/apache/commons/jexl3/internal/Operators.java
src/test/java/org/apache/commons/jexl3/SynchronizedArithmetic.java
src/test/java/org/apache/commons/jexl3/SynchronizedContext.java
src/test/java/org/apache/commons/jexl3/SynchronizedOverloadsTest.java

Committed revision 1747591.

> synchronize 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.0.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
(v6.3.4#6332)

Mime
View raw message