[Mono-bugs] [Bug 28311][Wis] New - mcs miscompiles TypeDescriptor::add_Refreshed in System.dll

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
29 Jul 2002 15:17:02 -0000


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=28311

--- shadow/28311	Mon Jul 29 11:17:02 2002
+++ shadow/28311.tmp.29634	Mon Jul 29 11:17:02 2002
@@ -0,0 +1,36 @@
+Bug#: 28311
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: vargaz@freemail.hu               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs miscompiles TypeDescriptor::add_Refreshed in System.dll
+
+mcs miscompiles the above method (or more generally: static event add/remove
+methods).
+It generates the following code:
+IL_0000: ldarg.0 
+	IL_0001: ldarg.0 
+	IL_0002: ldfld  class System.ComponentModel.RefreshEventHandler
+System.ComponentModel.TypeDescriptor::Refreshed
+	IL_0007: ldarg.1 
+
+For static methods, it should generate something like this:
+       ldsfld ...
+       ldarg.0
+       call ...
+       castclass ...
+       stsfld ....
+       ret
+
+Same goes for the remove_... method.