commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <>
Subject [JEXL] Multi-statement expression evaluation - change to last?
Date Tue, 13 May 2008 14:52:38 GMT
The Jexl eval() method allows for multiple statements in the expression.

However, the result of the expression is currently taken to be the
first statement.

This is at odds with other scripting languages such as Javascript and
Beanshell which return the value of the last statement.

Seems to me that this behaviour is counter-intuitive (which is
possibly why the warning is logged).

Would there be any support for changing the behaviour to return the
value of the last statement?

[If necessary, perhaps this could be selected as a run-time option.]

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message