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/03 10:53:00 UTC
[jira] [Updated] (JEXL-286) 'for' statement without a body should
update its variable
[ https://issues.apache.org/jira/browse/JEXL-286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henri Biestro updated JEXL-286:
-------------------------------
Fix Version/s: 3.2
> 'for' statement without a body should update its variable
> ---------------------------------------------------------
>
> Key: JEXL-286
> URL: https://issues.apache.org/jira/browse/JEXL-286
> Project: Commons JEXL
> Issue Type: Bug
> Affects Versions: 3.1
> Reporter: Dmitri Blinov
> Assignee: Henri Biestro
> Priority: Major
> Fix For: 3.2
>
>
> The following scripts produce different results
> {code:java}
> x = 0; for(x : 1..2); return x{code}
> and
> {code:java}
> x = 0; for(x : 1..2){}; return x{code}
> The expected behaviour is that both scripts should return the same value of {{2}}, i.e. the 'for' statement without a body should nevertheless update its iteration variable
--
This message was sent by Atlassian Jira
(v8.3.4#803005)