[Mono-bugs] [Bug 76931][Blo] New - Return value of ISerializationSurrogate.SetObjectData() ignored

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Dec 6 12:39:48 EST 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by martin at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=76931

--- shadow/76931	2005-12-06 12:39:48.000000000 -0500
+++ shadow/76931.tmp.1651	2005-12-06 12:39:48.000000000 -0500
@@ -0,0 +1,39 @@
+Bug#: 76931
+Product: Mono: Class Libraries
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Blocker
+Component: CORLIB
+AssignedTo: lluis at ximian.com                            
+ReportedBy: martin at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Return value of ISerializationSurrogate.SetObjectData() ignored
+
+According to the documentation, ISerializationSurrogate.SetObjectData()
+returns the fully deserialized object.  This seems to indicate that you may
+return a different object than the one passed to you.  I checked on the MS
+runtime and indeed it does.  You may also return null in which case the
+original object is used.
+
+The attached test case prints
+
+   Bar [Foo (16),(Foo (6),Foo (10),Foo (42)]
+
+on the MS runtime and
+
+   Bar [Foo (8),(Foo (3),Foo (5),Foo (21)]
+
+when run with Mono.
+
+I tried updating the `ObjectInstance' in ObjectManager.cs:530, but then
+it's still not working with arrays.
+
+Is this hard to fix ?  It currently blocks my new session management code
+in the debugger.


More information about the mono-bugs mailing list