Howdy,

I have an array of beans, each of which has a single numeric property called
"index".  I've declared that array as a variable in my context, and I'm
trying to query for a subset of those beans using the following simple
expression:

        $array[index > 2]

My array is 8 elements long (with 0-based indexing), so I expect to get
items 3-7.  When I try this using release 1.0, I get 4,5,6,7,7.  When I try
it using nightly build 1.17, I get no results.

I've attached the code I used to perform these tests, and a txt file showing
the results using the two different builds.  If you don't have time to look
into it, I'd be happy to do so if you could give me a hint or two about
where to start looking in the code.

Thanks in advance,
Ed

Attachment: QueryBug.java
Description: Binary data

========================================================
results using release 1.0 -- the bean with index 3 is
skipped, and the bean with index 7 is included twice
========================================================

$var_array[value > 2]
    SimpleBean-4
    SimpleBean-5
    SimpleBean-6
    SimpleBean-7
    SimpleBean-7

========================================================
results using nightly build 1/17 -- nothing
========================================================

$var_array[value > 2]



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to