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

User [EMAIL PROTECTED] added comment
https://bugzilla.novell.com/show_bug.cgi?id=351172#c7





--- Comment #7 from Zoltan Varga <[EMAIL PROTECTED]>  2008-03-14 17:36:08 MST 
---
The previous issue is now fixed, but a harder to fix issue remains:

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
                Type t = tb.MakeGenericType (typeof (int));
                Type arr = t.MakeArrayType ();

                FieldBuilder fb = tb.DefineField ("First", typeParams [0],
FieldAttributes.Public);

                Type created = tb.CreateType ();

                Console.WriteLine ("A: " + TypeBuilder.GetField
(tb.MakeGenericType (typeof (int)), fb2));
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

What happens here is that t.MakeArrayType () causes mono_class_init () to 
be called on the MonoClass representing 't'. This causes klass->field.count to
be set to 0 from gclass->field.count. This causes GetField () to fail.


-- 
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.
_______________________________________________
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to