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


           Summary: Mono core dumps when reaching uninitialized object
                    through reflection
           Product: Mono: Class Libraries
           Version: SVN
          Platform: i686
        OS/Version: Kubuntu
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: System
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [EMAIL PROTECTED]
          Found By: ---


Created an attachment (id=185990)
 --> (https://bugzilla.novell.com/attachment.cgi?id=185990)
sample code of reflection bug in mono

Problem:
When using reflection (FieldInfo arrays) to iterate through object fields, mono
core dumps at runtime when reflection tries to use GetValue on a field with the
object as argument (see attached sample code)

Expected behaviour:
I would expect an ArgumentException, as access on fields of uninitialized
objects should be an exception.

Attached is an example tested with gmcs version 1.2.6.0 and Mono JIT compiler
version 1.2.6, revision 90732


-- 
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  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to