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


           Summary: System.Type.GetMethod does not work as expected.
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: Macintosh
        OS/Version: Mac
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Class Libraries
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: Development


Description of Problem:


Steps to reproduce the problem:
1. Create a class hierarchy where you have a base abstract class in on assembly
and a descendant class in another.
2. Add a bunch of dummy methods varying in scope visibility.
3. Use reflection method Type.GetMethod("SomeMethodWhichHasParameters")
4. Use reflection method Type.GetMethods()... derived type members are not
returned


Actual Results:

3. The method return null. I have tried various combinations of binding flags.
4. Only the base class methods are returned.

Expected Results:

3. According to MS.NET implementation, specifying parameter types is not
required and it will return the method or throw an exception indicating that is
ambiguous
4. Derived class methods should show up.

How often does this happen? 

Consistent

Additional Information:

Code:

MethodInfo method = null;
                method = Proxy.GetType().GetMethod(methodName);
                if (method == null) 
                {

                    throw ...

                }

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

Reply via email to