You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2002/08/07 08:39:05 UTC
DO NOT REPLY [Bug 11522] New: -
LazyCollections.lazyList.get(i) grows wrong
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11522>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11522
LazyCollections.lazyList.get(i) grows wrong
Summary: LazyCollections.lazyList.get(i) grows wrong
Product: Commons
Version: Nightly Builds
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Collections
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: nikolaj@joergensen-mail.dk
LazyCollections.lazyList.get(i) grows wrong when called with i == (size() -1).
If the list has 3 elements and LazyCollections.lazyList.get(2) is called then
size of the list will grow to size == 4 because within bounds check says:
if(index < (this.listImpl.size()-1) {
Should be:
if(index < this.listImpl.size()) {
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>