[Mono-bugs] [Bug 42779][Nor] Changed - Type.IsSerializable should be true for any kind of arrays
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Tue, 13 May 2003 05:15:36 -0400 (EDT)
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 dietmar@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=42779
--- shadow/42779 Mon May 12 12:06:06 2003
+++ shadow/42779.tmp.13687 Tue May 13 05:15:36 2003
@@ -129,6 +129,25 @@
but under mono:
IsSerializable? False
Attributes: Public
I'm assigning this bug to the runtime because a csc compiled exe
produces the same results, so it's not a compiler problem.
+
+------- Additional Comments From dietmar@ximian.com 2003-05-13 05:15 -------
+One problem is in class.c: mono_array_class_get ()
+
+There we set the flags for array types:
+
+class->flags = TYPE_ATTRIBUTE_CLASS | (eclass->flags &
+TYPE_ATTRIBUTE_VISIBILITY_MASK);
+
+looks like this is wrong. I tried to simply set:
+
+class->flags = eclass->flags;
+
+But the I get the following output:
+
+IsSerializable? True
+Attributes: 1056897
+
+Maybe there is something wrong with TypeAttribute.ToString()?