Correction, the behavior has *not* changed in the current trunk.
An expression with multiple statements still logs a warning upon creation
and only executes its first child.
Checked with:
public void testSebb() throws Exception {
JexlContext ctxt = JexlHelper.createContext();
JexlEngine jexl = new JexlEngine();
jexl.setSilent(false);
jexl.setLenient(false);
Expression e = jexl.createExpression("3;4");
assertEquals("3", e.evaluate(ctxt).toString());
}
The question about the need for both Script and Expression is indeed valid
though.
--
View this message in context:
http://www.nabble.com/-JEXL--2.0-change-of-behaviour-for-expressions---RFC-tp25236899p25238556.html
Sent from the Commons - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]