[Mono-bugs] [Bug 471359] New: Binder: ChangeType should only be invoked for non-default binder

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Feb 1 14:59:54 EST 2009


User gert.driesen at pandora.be added comment

           Summary: Binder: ChangeType should only be invoked for
                    non-default binder
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: gert.driesen at pandora.be
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

User-Agent:       Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;
Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR
3.0.04506.30; .NET CLR 3.0.04506.590; .NET CLR 3.0.04506.648; .NET CLR
3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

By looking at bug #471255, I noticed that we are invoking ChangeType on a
custom binder even if the argument type matches that of the method.

Also, on MS invoking ChangeType on the DefaultBinder results in an

I think we need to move the Binder.Default.ChangeType implementation to Binder
itself, and add more tests to determine when we actually need to invoke
ChangeType on the custom binder.

I've attached a small test which shows part of the difference in behavior.

Reproducible: Always

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