[Mono-bugs] [Bug 682140] New: Dictionary does not handle Int32 correctly.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Mar 23 20:24:28 EDT 2011


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

https://bugzilla.novell.com/show_bug.cgi?id=682140#c0


           Summary: Dictionary does not handle Int32 correctly.
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.XML
        AssignedTo: atsushi at ximian.com
        ReportedBy: stevens+novell at ischyrus.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=421029)
 --> (http://bugzilla.novell.com/attachment.cgi?id=421029)
Example of issue

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_7; en-US)
AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16

This could just be a problem with Int32 items being defined in xaml, however
the specific error I am hitting in my project involves a dictionary so I am
providing an example of my scenario to make sure it works.

When a dictionary is defined with a specific key and value type generically,
the XAML does not load correctly.

Reproducible: Always

Steps to Reproduce:
Run the attached repro
Actual Results:  
System.Xaml.XamlObjectWriterException: Value '20' (of type System.Int32) is not
of or convertible to type 20 (member
{http://www.domain.com/path}TestType.Items)
  at System.Xaml.XamlObjectWriterInternal.DoGetCorrectlyTypedValue
(System.Xaml.XamlMember xm, System.Xaml.XamlType xt, System.Object value)
[0x00167] in
/Users/ischyrus/Source/mono/mcs/class/System.Xaml/System.Xaml/XamlObjectWriter.cs:499 
  at System.Xaml.XamlObjectWriterInternal.GetCorrectlyTypedValue
(System.Xaml.XamlMember xm, System.Xaml.XamlType xt, System.Object value)
[0x00000] in
/Users/ischyrus/Source/mono/mcs/class/System.Xaml/System.Xaml/XamlObjectWriter.cs:448 

Expected Results:  
Load the xaml given in the attached repro

-- 
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