commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: [JEXL] 2.0 change of behaviour for expressions - RFC
Date Tue, 01 Sep 2009 11:41:51 GMT
On 01/09/2009, Henrib <hbiestro@gmail.com> wrote:
>
>  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());
>  }
>

Sorry, my bad - I used the wrong test application to check this.

>  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: dev-unsubscribe@commons.apache.org
>  For additional commands, e-mail: dev-help@commons.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message