Junfeic / kryo

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

copy of a graph sometimes still refers to the root of the copy #76

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Create a graph structure that contains back pointers to the root.
Make a copy of that root.

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

The expectation is that, in the copy, references to the root are replaced by 
references to the copy of the root. However references to the root refer to the 
original, not the copy.

What version of the Kryo are you using?

2.16

Please provide any additional information below.

If I put the root into a singleton list, copy the list and then .get(0), the 
copy is fine. Seems like the root is being incorrectly registered.

Original issue reported on code.google.com by antony.b...@gmail.com on 29 Jun 2012 at 5:29

GoogleCodeExporter commented 9 years ago
Thanks!

Original comment by nathan.s...@gmail.com on 29 Jun 2012 at 5:49

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r322.

Original comment by nathan.s...@gmail.com on 29 Jun 2012 at 5:49