You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Dmitri Blinov (JIRA)" <ji...@apache.org> on 2019/01/12 07:47:00 UTC
[jira] [Created] (JEXL-286) 'for' statement without a body should
update its variable
Dmitri Blinov created JEXL-286:
----------------------------------
Summary: '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
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
(v7.6.3#76005)