[ https://issues.apache.org/jira/browse/JEXL-286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henri Biestro resolved JEXL-286. -------------------------------- Resolution: Fixed Assignee: Henri Biestro https://github.com/apache/commons-jexl/commit/4dc0dcf7a89a5cbfb613e64bb2e052984fd1a2a9 > '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 > > 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)