duchien85 / kryo

Automatically exported from code.google.com/p/kryo
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

BufferOverflowException #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
sorry, the kryo version I used is exectly 1.04, not 1.01.

Original comment by flyonst...@gmail.com on 8 Mar 2011 at 6:02

GoogleCodeExporter commented 9 years ago

Original comment by nathan.s...@gmail.com on 8 Mar 2011 at 10:47