What steps will reproduce the problem?
1.create a bean class, holding a reference to another one, like
public class Dinner
{
private Dinner next;
public Dinner getNext()
{
return next;
}
public void setNext(Dinner next)
{
this.next = next;
}
}
2.instantiate one and set the next to itself,
Dinner d = new Dinner();
d.setNext(d);
3.Use kryo ( version 1.01 ) to serialize it,
byte[] bytes = buffer.writeObjectData(src);
You will get the BufferOverflowException for sure.
Original issue reported on code.google.com by flyonst...@gmail.com on 8 Mar 2011 at 6:00
Original issue reported on code.google.com by
flyonst...@gmail.com
on 8 Mar 2011 at 6:00