Fix from "Knych, Thomas [IT]" <thomas.knych () citigroup ! com>
http://marc.theaimsgroup.com/?l=jakarta-commons-dev&m=112144808412305&w=2 git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@219232 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2923c2de86
commit
557c0cccf4
|
@ -123,7 +123,7 @@ public class UnboundedFifoBuffer extends AbstractCollection implements Buffer, S
|
|||
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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue