db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r595385 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/system/oe/client/Submitter.java
Date Thu, 15 Nov 2007 18:22:38 GMT
Author: djd
Date: Thu Nov 15 10:22:36 2007
New Revision: 595385

URL: http://svn.apache.org/viewvc?rev=595385&view=rev
Log:
Fix array out of bounds exception when submitting a new order transaction due to setting the
invalid item identifier at the incorrect position in the array.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/system/oe/client/Submitter.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/system/oe/client/Submitter.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/system/oe/client/Submitter.java?rev=595385&r1=595384&r2=595385&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/system/oe/client/Submitter.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/system/oe/client/Submitter.java
Thu Nov 15 10:22:36 2007
@@ -405,7 +405,7 @@
     	// Section 2.4.1.4
     	if (forRollback)
     	{
-    		items[orderItemCount] = 2334432;
+    		items[orderItemCount - 1] = 2334432;
     	}
     	
         ops.newOrder(display, displayData,



Mime
View raw message