[Mono-bugs] [Bug 555464] reflection.c:2609:get_field_on_inst_generic_type: assertion

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Nov 30 16:16:01 EST 2009


http://bugzilla.novell.com/show_bug.cgi?id=555464

http://bugzilla.novell.com/show_bug.cgi?id=555464#c12


--- Comment #12 from Onur Gumus <emperon at gmail.com> 2009-11-30 21:15:59 UTC ---
For the sake of completeness I am pasting the part that fails in nemerle.
Basically we check for System.RuntimeType to detect if we are .net or not.
This code was working by mono 2.0.2. 

The full code is @
http://code.google.com/p/nemerle/source/browse/nemerle/trunk/ncc/generation/ILEmitter.n

line 291

static FrameworkGetMethod (t : System.Type, mutable m : MethodInfo) :
MethodInfo
    {
      if (MS_NET_RuntimeType != null)
        if (t.GetType().Equals (MS_NET_RuntimeType))
          // workaround MS.NET limitation of not allowing RuntimeType in
TypeBuilder.GetMethod   
          GetHackishMethod (t, m);
        else {
          def td = t.GetGenericTypeDefinition ();
          when (td.GetType().Equals (MS_NET_RuntimeType))
            m = GetHackishMethod (td, m);

          TypeBuilder.GetMethod (t, m);
        }
      else
        TypeBuilder.GetMethod (t, m);
    }

-- 
Configure bugmail: http://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