namgk / ambienttalk

Automatically exported from code.google.com/p/ambienttalk
0 stars 0 forks source link

Serialization problem with mirage objects #53

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a object mirrored by a custom mirror, let's call it objA.
the custom mirror which overrides pass and parameters passes objB instead.
If objB is a mirage as well, serialization fails.
or 
run /.test.serialization.SerializationTest.runTest with a version previous to 
version 2898 of trunk.

What is the expected output? What do you see instead?
The expected behaviour is that objB is going to be serialized instead of objA.
However, pass() didn't get recursively called for mirages.

Solution:
Changes on writeReplace() at NativeATObject to enforce recursion if the return 
value of pass is a NATMirage (which is not an isolate).

Original issue reported on code.google.com by egonzal...@gmail.com on 26 Jul 2011 at 5:19

GoogleCodeExporter commented 8 years ago
BugFix committed in 2899.

Original comment by egonzal...@gmail.com on 26 Jul 2011 at 5:34