[Mono-bugs] [Bug 479763] Delegate.CreateDelegate throws ArgumentException under unusual circumstances

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Feb 26 13:19:47 EST 2009


https://bugzilla.novell.com/show_bug.cgi?id=479763

User dmitchell at logos.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=479763#c1





--- Comment #1 from David Mitchell <dmitchell at logos.com>  2009-02-26 11:19:45 MST ---
I just noticed that the stacktraces for 2.2 and svn head are slightly
different; Here's 2.2:

Unhandled Exception: System.ArgumentException: method arguments are
incompatible
  at System.Delegate.CreateDelegate (System.Type type, System.Object
firstArgument, System.Reflection.MethodInfo method, Boolean throwOnBindFailure)
[0x00000] 
  at System.Delegate.CreateDelegate (System.Type type, System.Object
firstArgument, System.Reflection.MethodInfo method) [0x00000] 
  at Foo.AddHandler[Object] (System.String target) [0x00000] 
  at Program.Main () [0x00000]

and here's svn head:

Unhandled Exception: System.ArgumentException: method arguments are
incompatible
  at System.Delegate.CreateDelegate (System.Type type, System.Object
firstArgument, System.Reflection.MethodInfo method, Boolean throwOnBindFailure)
[0x00000] 
  at System.Delegate.CreateDelegate (System.Type type, System.Object
firstArgument, System.Reflection.MethodInfo method) [0x00000] 
  at Foo.AddHandler[Type] (System.String target) [0x00000] 
  at Program.Main () [0x00000]

You'll notice that 2.2 reports the generic parameter of AddHandler as [Object],
while svn head reports it as [Type]. I have no idea as to whether or not that
is significant/useful.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list