[Mono-bugs] [Bug 681724] New: Enums are not being converted before setting property in XAML
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Mar 22 17:06:01 EDT 2011
https://bugzilla.novell.com/show_bug.cgi?id=681724
https://bugzilla.novell.com/show_bug.cgi?id=681724#c0
Summary: Enums are not being converted before setting property
in XAML
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=420787)
--> (http://bugzilla.novell.com/attachment.cgi?id=420787)
Example of issue
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US)
AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16
If a property is an Enum, the value is not converted to the enum before setting
the value.
Attached is a repo.
Reproducible: Always
Steps to Reproduce:
1. Create an enum
2. Create a type that uses the enum for a property
3. Attempt to load the object with XAML and a valid value for the num
Actual Results:
System.ArgumentException: failed to convert parameters
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00063] in
/Users/ischyrus/Source/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:200
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[]
parameters) [0x00000] in
/Users/ischyrus/Source/mono/mcs/class/corlib/System.Reflection/MethodBase.cs:96
at System.Xaml.Schema.XamlMemberInvoker.SetValue (System.Object instance,
System.Object value) [0x00064] in
/Users/ischyrus/Source/mono/mcs/class/System.Xaml/System.Xaml.Schema/XamlMemberInvoker.cs:83
at System.Xaml.XamlObjectWriterInternal.SetValue (System.Xaml.XamlMember
member, System.Object value) [0x00086] in
/Users/ischyrus/Source/mono/mcs/class/System.Xaml/System.Xaml/XamlObjectWriter.cs:365
at System.Xaml.XamlObjectWriterInternal.OnWriteEndMember () [0x0020a] in
/Users/ischyrus/Source/mono/mcs/class/System.Xaml/System.Xaml/XamlObjectWriter.cs:329
at System.Xaml.XamlWriterInternalBase.WriteEndMember () [0x0000b] in
/Users/ischyrus/Source/mono/mcs/class/System.Xaml/System.Xaml/XamlWriterInternalBase.cs:209
at System.Xaml.XamlObjectWriter.WriteEndMember () [0x00000] in
/Users/ischyrus/Source/mono/mcs/class/System.Xaml/System.Xaml/XamlObjectWriter.cs:195
at System.Xaml.XamlWriter.WriteNode (System.Xaml.XamlReader reader) [0x00079]
in
/Users/ischyrus/Source/mono/mcs/class/System.Xaml/System.Xaml/XamlWriter.cs:75
at System.Xaml.XamlServices.Transform (System.Xaml.XamlReader xamlReader,
System.Xaml.XamlWriter xamlWriter, Boolean closeWriter) [0x00039] in
/Users/ischyrus/Source/mono/mcs/class/System.Xaml/System.Xaml/XamlServices.cs:123
at System.Xaml.XamlServices.Transform (System.Xaml.XamlReader xamlReader,
System.Xaml.XamlWriter xamlWriter) [0x00000] in
/Users/ischyrus/Source/mono/mcs/class/System.Xaml/System.Xaml/XamlServices.cs:109
at System.Xaml.XamlServices.Load (System.Xaml.XamlReader xamlReader)
[0x0001d] in
/Users/ischyrus/Source/mono/mcs/class/System.Xaml/System.Xaml/XamlServices.cs:58
at System.Xaml.XamlServices.Load (System.Xml.XmlReader xmlReader) [0x00000]
in
/Users/ischyrus/Source/mono/mcs/class/System.Xaml/System.Xaml/XamlServices.cs:50
at System.Xaml.XamlServices.Load (System.String fileName) [0x00007] in
/Users/ischyrus/Source/mono/mcs/class/System.Xaml/System.Xaml/XamlServices.cs:35
Expected Results:
Load succesfully
--
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