[Mono-bugs] [Bug 479763] Generics sharing causes Delegate.CreateDelegate throws ArgumentException under unusual circumstances
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Feb 26 15:38:50 EST 2009
https://bugzilla.novell.com/show_bug.cgi?id=479763
User msafar at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=479763#c2
Marek Safar <msafar at novell.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|mono-bugs at lists.ximian.com |mprobst at novell.com
Summary|Delegate.CreateDelegate |Generics sharing causes
|throws ArgumentException |Delegate.CreateDelegate
|under unusual circumstances |throws ArgumentException
| |under unusual circumstances
--- Comment #2 from Marek Safar <msafar at novell.com> 2009-02-26 13:38:50 MST ---
This is generic sharing bug.
mono test.exe
hello
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]
mono --optimize=-gshared test.exe
hello
--
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