[Mono-bugs] [Bug 467230] MethodInfo.MakeGenericMethod() crashes when a custom type is passed in.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jan 22 06:25:17 EST 2009


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

User rkumpera at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=467230#c4


Rodrigo Kumpera <rkumpera at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rkumpera at novell.com




--- Comment #4 from Rodrigo Kumpera <rkumpera at novell.com>  2009-01-22 04:25:16 MST ---
Zoltan, the answer is the worst possible one.

All methods that take Type, MethodInfo or other reflection types with unmanaged
mirrors must not pass then directly to icalls, they first need to be checked
and the proper action taken.

Calling System.Type::UnderlyingType is just a start.


The worst part is that when making a generic instance of user types, we need to
return a new System.Type that is different from the one from the underlying
one.

Given the following:

UT(T) -> User type UT wrapping system type T

GI = X.MakeGenericType (T)
GI' = X.MakeGenericType (UT)

GI != GI'

I haven't dug much further on this subject to see the effects on created
objects.

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