[ https://issues.apache.org/jira/browse/JEXL-372 ]
Dmitri Blinov deleted comment on JEXL-372: ------------------------------------ was (Author: dmitri_blinov): The following use case returns 1 in JS {code:java} @Test public void testIncrementOperatorOnNull() throws Exception { final JexlEngine jexl = new JexlBuilder().strict(false).create(); JexlScript script; Object result; script = jexl.createScript("var i = null; ++i"); result = script.execute(null); Assert.assertEquals(1, result); } {code} May be we should follow suit? > Add support for 'standard' for loop > ----------------------------------- > > Key: JEXL-372 > URL: https://issues.apache.org/jira/browse/JEXL-372 > Project: Commons JEXL > Issue Type: Improvement > Affects Versions: 3.2.1 > Reporter: Henri Biestro > Assignee: Henri Biestro > Priority: Major > Fix For: 3.3 > > > It would be nice to allow the C/Javascript/Java for loop: > for(init-expression; predicate-expression; step-expression) body > This calls for the prefix/postfix increment/decrement operators. -- This message was sent by Atlassian Jira (v8.20.7#820007)