[Mono-bugs] [Bug 70104][Wis] New - Serialization/deserialization issues
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 1 Dec 2004 14:51:28 -0500 (EST)
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 shurik_u@freemail.ru.
http://bugzilla.ximian.com/show_bug.cgi?id=70104
--- shadow/70104 2004-12-01 14:51:28.000000000 -0500
+++ shadow/70104.tmp.16458 2004-12-01 14:51:28.000000000 -0500
@@ -0,0 +1,55 @@
+Bug#: 70104
+Product: Mono: Runtime
+Version: 1.0
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: JIT
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: shurik_u@freemail.ru
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Serialization/deserialization issues
+
+Description of Problem:
+
+Assume that there exist a class:
+class A : ISerializable
+{
+...
+}
+
+Lets now create SurrogateSelector:
+SurrogateSelector ss = new SurrogateSelector();
+ss.AddSurrogate(typeof(DataObjectReference),
+ new StreamingContext(StreamingContextStates.All), s);
+Where s is the ISerializationSurrogate instance intended for
+serialization/deserialization class A objects.
+
+And then BinaryFormatter
+
+BinaryFormatter formatter = new BinaryFormatter();
+formatter.SurrogateSelector = ss;
+
+Now lets perform serialization/deserialization using our BinaryFormatter.
+
+Actual Results:
+1. Serialization with using SerializationSurrogate
+2. Deserialization with using deserialization constructor of class A
+
+Expected Results:
+
+Serialization and deserialization with using SerializationSurrogate
+
+How often does this happen?
+
+Always
+
+Additional Information:
+
+This behavior is typical both for Mono 1.0 and Mono 1.1