зеркало из https://github.com/mono/mail-archives.git
120 строки
4.3 KiB
HTML
120 строки
4.3 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Mono-bugs] [Bug 60360][Nor] New - Mono allows types containing non-serializable fields to be serialized
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:bugzilla-daemon%40bugzilla.ximian.com">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
|
|
<LINK REL="Previous" HREF="017543.html">
|
|
<LINK REL="Next" HREF="017545.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Mono-bugs] [Bug 60360][Nor] New - Mono allows types containing non-serializable fields to be serialized
|
|
</H1>
|
|
<B>bugzilla-daemon@bugzilla.ximian.com
|
|
</B>
|
|
<A HREF="mailto:bugzilla-daemon%40bugzilla.ximian.com"
|
|
TITLE="[Mono-bugs] [Bug 60360][Nor] New - Mono allows types containing non-serializable fields to be serialized">bugzilla-daemon@bugzilla.ximian.com
|
|
</A><BR>
|
|
<I>Thu, 17 Jun 2004 14:43:48 -0400 (EDT)</I>
|
|
<P><UL>
|
|
<LI> Previous message: <A HREF="017543.html">[Mono-bugs] [Bug 60307][Cri] Changed - Monodoc crash on C# compiler error display
|
|
</A></li>
|
|
<LI> Next message: <A HREF="017545.html">[Mono-bugs] [Bug 60316][Maj] Changed - MCS 0.96 fails to emit a foreach on a struct collection property
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#17544">[ date ]</a>
|
|
<a href="thread.html#17544">[ thread ]</a>
|
|
<a href="subject.html#17544">[ subject ]</a>
|
|
<a href="author.html#17544">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>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 <A HREF="mailto:gert.driesen@pandora.be.">gert.driesen@pandora.be.</A>
|
|
|
|
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=60360">http://bugzilla.ximian.com/show_bug.cgi?id=60360</A>
|
|
|
|
--- shadow/60360 2004-06-17 14:43:48.000000000 -0400
|
|
+++ shadow/60360.tmp.10364 2004-06-17 14:43:48.000000000 -0400
|
|
@@ -0,0 +1,56 @@
|
|
+Bug#: 60360
|
|
+Product: Mono: Class Libraries
|
|
+Version: unspecified
|
|
+OS:
|
|
+OS Details:
|
|
+Status: NEW
|
|
+Resolution:
|
|
+Severity:
|
|
+Priority: Normal
|
|
+Component: CORLIB
|
|
+AssignedTo: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
|
|
+ReportedBy: <A HREF="mailto:gert.driesen@pandora.be">gert.driesen@pandora.be</A>
|
|
+QAContact: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
|
|
+TargetMilestone: ---
|
|
+URL:
|
|
+Cc:
|
|
+Summary: Mono allows types containing non-serializable fields to be serialized
|
|
+
|
|
+Mono currently allows types containing fields that are not serializable
|
|
+to be serialized.
|
|
+
|
|
+using System;
|
|
+using System.IO;
|
|
+using System.Runtime.Serialization;
|
|
+using System.Runtime.Serialization.Formatters.Binary;
|
|
+
|
|
+public class EntryPoint
|
|
+{
|
|
+ public static void Main ()
|
|
+ {
|
|
+ SerializableClass instance = new SerializableClass ();
|
|
+ BinaryFormatter bf = new BinaryFormatter ();
|
|
+ MemoryStream ms = new MemoryStream ();
|
|
+ bf.Serialize (ms, instance);
|
|
+ }
|
|
+}
|
|
+
|
|
+[Serializable]
|
|
+public class SerializableClass
|
|
+{
|
|
+ // Mono should not be able to serialize this member
|
|
+ private NotSerializableClass test;
|
|
+}
|
|
+
|
|
+public class NotSerializableClass
|
|
+{
|
|
+}
|
|
+
|
|
+Running this test app on MS.NET causes the following exception to be
|
|
+thrown :
|
|
+
|
|
+Unhandled Exception: System.Runtime.Serialization.SerializationException:
|
|
+The type NotSerializableClass in Assembly test, Version=0.0.0.0,
|
|
+Culture=neutral, PublicKeyToken=null is not marked as serializable.
|
|
+
|
|
+On Mono, no exception is thrown at all.
|
|
|
|
</PRE>
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI> Previous message: <A HREF="017543.html">[Mono-bugs] [Bug 60307][Cri] Changed - Monodoc crash on C# compiler error display
|
|
</A></li>
|
|
<LI> Next message: <A HREF="017545.html">[Mono-bugs] [Bug 60316][Maj] Changed - MCS 0.96 fails to emit a foreach on a struct collection property
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#17544">[ date ]</a>
|
|
<a href="thread.html#17544">[ thread ]</a>
|
|
<a href="subject.html#17544">[ subject ]</a>
|
|
<a href="author.html#17544">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
</body></html>
|