[Mono-bugs] [Bug 362602] New: PropertyDescriptor.Converter tests, and problem with type name only

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Feb 17 16:05:12 EST 2008


           Summary: PropertyDescriptor.Converter tests, and problem with
                    type name only
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: contact at i-nz.net
        ReportedBy: andyhume32 at yahoo.co.uk
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

Created an attachment (id=195317)
 --> (https://bugzilla.novell.com/attachment.cgi?id=195317)

There appears to be only one unit-test of the TypeDescription /
PropertyDescriptor.Converter behaviour
(PropertyDescriptorTests.MissingTypeConverter -- a test of a failure case), so
I've created some more, attached.  All tests pass on MSFT.  This was done in
investigating bug BBBBBB.

In general the functionality is shown to work correctly on Mono.  However two
issues are apparent, firstly bug 322464 is exposed.  Secondly there seems to be
a problem when the type is specified in the attribute as a string and the
assembly name isn't included (but the type is in the local assembly).

There are two workaround so the problem is not serious, one can use the
overload that takes a Type, or pass the full assembly-qualified type name

In more detail the TypeConverterAttribute can be initialised with a Type or a
String.  For the String form, in MSFT the Type.FullName value is sufficient, in
Mono it appears that the Type.AssemblyQualifiedName is required.  This MSFT
behaviour is *implied* by MSDN.

"The fully qualified name of the class to use for data conversion for the
object this attribute is bound to."

Where the properties of Type say:
Type.FullName: "A string containing the fully qualified name of the Type, ..."
Type.AssemblyQualifiedName: "The assembly-qualified name of the Type, ..."

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list