commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r219232 - /jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/buffer/UnboundedFifoBuffer.java
Date Fri, 15 Jul 2005 18:33:45 GMT
Author: dims
Date: Fri Jul 15 11:33:44 2005
New Revision: 219232

URL: http://svn.apache.org/viewcvs?rev=219232&view=rev
Log:
Fix from "Knych, Thomas [IT]" <thomas.knych () citigroup ! com>

http://marc.theaimsgroup.com/?l=jakarta-commons-dev&m=112144808412305&w=2


Modified:
    jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/buffer/UnboundedFifoBuffer.java

Modified: jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/buffer/UnboundedFifoBuffer.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/buffer/UnboundedFifoBuffer.java?rev=219232&r1=219231&r2=219232&view=diff
==============================================================================
--- jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/buffer/UnboundedFifoBuffer.java
(original)
+++ jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/buffer/UnboundedFifoBuffer.java
Fri Jul 15 11:33:44 2005
@@ -123,7 +123,7 @@
     private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
{
         in.defaultReadObject();
         int size = in.readInt();
-        buffer = new Object[size];
+        buffer = new Object[size+1];
         for (int i = 0; i < size; i++) {
             buffer[i] = in.readObject();
         }



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


Mime
View raw message