Fixed index out of bounds error in AbstractBaseManager.  The fix is 
pretty obvious looking at the patch.

Byron
Index: src/java/org/apache/torque/manager/AbstractBaseManager.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-turbine-torque/src/java/org/apache/torque/manager/AbstractBaseManager.java,v
retrieving revision 1.6
diff -U5 -r1.6 AbstractBaseManager.java
--- src/java/org/apache/torque/manager/AbstractBaseManager.java 4 Jun 2002 21:22:03 
-0000       1.6
+++ src/java/org/apache/torque/manager/AbstractBaseManager.java 25 Jun 2002 12:12:46 
+-0000
@@ -386,11 +386,11 @@
                 List newOms = retrieveStoredOMs(newIds);
                 for ( int i=0; i<oms.size(); i++ )
                 {
                     if ( oms.get(i) instanceof ObjectKey )
                     {
-                        for ( int j=newOms.size(); j>=0; j-- )
+                        for ( int j=newOms.size()-1; j>=0; j-- )
                         {
                             Persistent om = (Persistent)newOms.get(j);
                             if ( om.getPrimaryKey().equals(oms.get(i)) )
                             {
                                 // replace the id with the om and add the om

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

Reply via email to