commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rahul Akolkar (JIRA)" <>
Subject [jira] Resolved: (JEXL-53) Defining and creating List for creating an expression
Date Sat, 07 Feb 2009 07:31:02 GMT


Rahul Akolkar resolved JEXL-53.

    Resolution: Invalid

The trunk allows for array literal syntax ( myArray = [ 'foo', 'bar' ] ) which may be useful

Since this has the flavor of a user list posting, you can try sending an email to the Commons
user mailing list.

I'm resolving this as Invalid (until there are specific proposals and/or patches).

> Defining and creating List for creating an expression
> -----------------------------------------------------
>                 Key: JEXL-53
>                 URL:
>             Project: Commons JEXL
>          Issue Type: Improvement
>    Affects Versions: 1.1
>         Environment: Windows, RAD 7.0
>            Reporter: Vijay
>             Fix For: 1.1
> I am new to using JEXL and my organization is looking to externalize the list of expression
we have.  Many of the expressions have a list of values as a reference data.  I would like
to define these values in a properties file along with the expression.  For example:
> "List myList = new List['2','3']; if(myList.contains(myValue)){true} else {false}";
> I am unable to define this syntax (error at definition of List).  I could not helpful
exception message, while creating the above exception.  
> The question is, can we define such list in JEXL expression string? what is the syntax?
 I could not figure out the answer from the java docs, sample code, JUnit tests and google
> If not, this case can be a potential candidate for improvement.
> Thanks
> Vijay

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message