Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StackOverflowError when serializing set containing itself #31

Closed
ghost opened this issue Nov 11, 2013 · 2 comments
Closed

StackOverflowError when serializing set containing itself #31

ghost opened this issue Nov 11, 2013 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 11, 2013

From chaschev on November 17, 2010 15:37:44

What steps will reproduce the problem?

  1. public class CyclicSet {
    public Set set = new HashSet();
    {
    set.add(set);
    }
    }
  2. Then just try to serialize new CyclicSet()


    What is the expected output? What do you see instead?

    I expect this object to be serialized.

    What version of the Kryo are you using?

    1.03

Original issue: http://code.google.com/p/kryo/issues/detail?id=31

@ghost
Copy link
Author

ghost commented Nov 11, 2013

From nathan.s...@gmail.com on November 17, 2010 11:02:13

The default serializer, FieldSerializer, does not support serializing references. Please see ReferenceFieldSerializer.

Status: Invalid

@ghost
Copy link
Author

ghost commented Nov 11, 2013

From chaschev on November 17, 2010 11:23:24

Yep, and Kryo works fine for me with normal field references. But it just cannot serialize the object above.

@ghost ghost closed this as completed Nov 11, 2013
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

0 participants