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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]