[jboss-cvs] JBossCache/src/org/jboss/cache/aop/collection ...

Ben Wang bwang at jboss.com
Tue Oct 10 04:11:21 EDT 2006


  User: bwang   
  Date: 06/10/10 04:11:21

  Modified:    src/org/jboss/cache/aop/collection  Tag:
                        Branch_JBossCache_1_4_0 CachedListImpl.java
  Log:
  JBCACHE-795 ListIterator exception
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.16.2.1  +2 -2      JBossCache/src/org/jboss/cache/aop/collection/CachedListImpl.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CachedListImpl.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/aop/collection/CachedListImpl.java,v
  retrieving revision 1.16
  retrieving revision 1.16.2.1
  diff -u -b -r1.16 -r1.16.2.1
  --- CachedListImpl.java	1 Jun 2006 03:56:44 -0000	1.16
  +++ CachedListImpl.java	10 Oct 2006 08:11:21 -0000	1.16.2.1
  @@ -252,7 +252,7 @@
   
         public MyListIterator(List list, int index) {
            list_ = list;
  -         if(index < 0 || index >= list_.size()) {
  +         if(index < 0 || index > list_.size()) {
               throw new IndexOutOfBoundsException("CachedListImpl: MyListIterator construction. " +
                     " Index is out of bound : " +index);
            }
  @@ -290,7 +290,7 @@
   
         public boolean hasNext()
         {
  -         return (index != list_.size() - 1);
  +         return (index < list_.size());
         }
   
         public boolean hasPrevious()
  
  
  



More information about the jboss-cvs-commits mailing list