[Mono-bugs] [Bug 47904][Nor] Changed - StructLayoutAttribute applied to child class of parent without attribute
Thu, 28 Aug 2003 07:19:18 -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 email@example.com.
--- shadow/47904 2003-08-26 01:35:32.000000000 -0400
+++ shadow/47904.tmp.7604 2003-08-28 07:19:18.000000000 -0400
@@ -1,14 +1,14 @@
@@ -60,6 +60,17 @@
situation is even legal.
It's usually a non-issue; however, MarshalByRefObject and
ContextBoundObject don't have the Sequential attribute applied, so under
the MS CLR, anything that derivces from these cannot have a
+------- Additional Comments From firstname.lastname@example.org 2003-08-28 07:19 -------
+If a class is marked sequential, all its parents must be marked
+sequential as well, since a derived class can't change the layout of
+the fields it inherits from its parent. It is documented somewhere in
+the spec, but I couldn't find it.
+So the only problem here is that the runtime doesn't verify this
+condition. In fact, it does almost no validation. Someday, somebody will
+implement a complete verifier for mono. In the meantime, I'm closing
+this as WONTFIX.