commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rahul Akolkar <rahul.akol...@gmail.com>
Subject Re: [JEXL] svn commit: r799919
Date Sun, 02 Aug 2009 21:42:20 GMT
On Sat, Aug 1, 2009 at 4:25 PM, <sebb@apache.org> wrote:
> Author: sebb
> Date: Sat Aug  1 20:25:38 2009
> New Revision: 799919
>
> URL: http://svn.apache.org/viewvc?rev=799919&view=rev
> Log:
> JEXL-50 - correct DIV documentation
> JEXL-64 - clarify allowable variable names
>
> Modified:
>    commons/proper/jexl/branches/2.0/xdocs/reference/syntax.xml
>
> Modified: commons/proper/jexl/branches/2.0/xdocs/reference/syntax.xml
> URL: http://svn.apache.org/viewvc/commons/proper/jexl/branches/2.0/xdocs/reference/syntax.xml?rev=799919&r1=799918&r2=799919&view=diff
> ==============================================================================
> --- commons/proper/jexl/branches/2.0/xdocs/reference/syntax.xml (original)
> +++ commons/proper/jexl/branches/2.0/xdocs/reference/syntax.xml Sat Aug  1 20:25:38
2009
> @@ -60,8 +60,19 @@
>               <li>Invalid: <code>9v</code>,<code>!a99</code>,<code>1$</code></li>
>             </ul>
>             <p>
> +            Variable names are case-sensitive, e.g. <code>var1</code>
and <code>Var1</code> are different variables.
> +            </p>
> +            <p>
>               JEXL also supports <code>ant-style</code> variables,
e.g. <source>my.dotted.var</source>
>               is a valid variable name.
> +              <br/>
> +              N.B. the following keywords are reserved, and cannot be used as
a variable name or property when using the dot operator:
> +              <code>or and eq ne lt gt le ge div mod not null true false
new</code>
> +              For example,
> +              <code>my.new.dotted.var</code>
> +              is invalid.
> +              In such cases, the [ ] operator can be used, for example:
> +              <code>my.['new'].dotted.var</code>
<snip/>

The bit in the line above is not a valid JEXL expression (can't
conflate the . and [ ]  operators like that). My JIRA comment was
as-intended, will fix in SVN.

-Rahul

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


Mime
View raw message