commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Perez Jorge <ape...@ignos.com>
Subject Re: [JXPath] Why array range check exists in isCollectionElement() ?
Date Thu, 02 Dec 2004 17:37:09 GMT

> BTW, why range check is done for (xpath) indexes > 1?  If I do 
> JXPathContext.getValue("storage[1]") it does not do range check, but 
> for JXPathContext.getValue("storage[2]") it does not.  Why 1 is 
> different?  Think about an empty array.
>
BTW, why range check is done for (xpath) indexes > 1?  If I do 
JXPathContext.getValue("storage[1]") it does not do range check, but for 
JXPathContext.getValue("storage[2]") it _does_. <snip/>

Excuse me for the typo.


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


Mime
View raw message