[Mono-bugs] [Bug 47904][Nor] Changed - StructLayoutAttribute applied to child class of parent without attribute

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
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 vargaz@freemail.hu.

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

--- 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 @@
 Bug#: 47904
 Product: Mono/Runtime
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
-Status: NEW   
-Resolution: 
-Severity: 
+Status: RESOLVED   
+Resolution: FIXED
+Severity: Unknown
 Priority: Normal
 Component: misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: vladimir@pobox.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -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
 StructLayoutAttribute applied.
+
+------- Additional Comments From vargaz@freemail.hu  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.