[Mono-bugs] [Bug 683290] New: If ContentPropertyAttribute is set, all content must be specified before any list properties are

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Mar 29 00:55:50 EDT 2011


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

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


           Summary: If ContentPropertyAttribute is set, all content must
                    be specified before any list properties are
    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=421817)
 --> (http://bugzilla.novell.com/attachment.cgi?id=421817)
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.204 Safari/534.16

In the attached repro there is a type with two properties that are ILists. One
of these properties is marked as the ContentProperty. When doing so, the
non-content list must be specified before the content is. Otherwise the type
does not resolve correctly

Reproducible: Always

Steps to Reproduce:
Run attached repro
Actual Results:  
System.NotSupportedException: Current operation is valid only when the
underlying type on a XamlType is known, but it is unknown for
'{http://www.domain.com/path}SimpleType.NonContentItems'
  at System.Xaml.Schema.XamlTypeInvoker.ThrowIfUnknown () [0x00027] in
/Users/ischyrus/Source/mono/mcs/class/System.Xaml/System.Xaml.Schema/XamlTypeInvoker.cs:54 
  at System.Xaml.Schema.XamlTypeInvoker.CreateInstance (System.Object[]
arguments) [0x00000] in
/Users/ischyrus/Source/mono/mcs/class/System.Xaml/System.Xaml.Schema/XamlTypeInvoker.cs:109 
  at System.Xaml.XamlObjectWriterInternal.InitializeObjectIfRequired (Boolean
waitForParameters) [0x00056] in
/Users/ischyrus/Source/mono/mcs/class/System.Xaml/System.Xaml/XamlObjectWriter.cs:539 
  at System.Xaml.XamlObjectWriterInternal.OnWriteStartObject () [0x00077] in
/Users/ischyrus/Source/mono/mcs/class/System.Xaml/System.Xaml/XamlObjectWriter.cs:229 
  at System.Xaml.XamlWriterInternalBase.WriteStartObject (System.Xaml.XamlType
xamlType) [0x0003d] in
/Users/ischyrus/Source/mono/mcs/class/System.Xaml/System.Xaml/XamlWriterInternalBase.cs:169 
  at System.Xaml.XamlObjectWriter.WriteStartObject (System.Xaml.XamlType
xamlType) [0x00000] in
/Users/ischyrus/Source/mono/mcs/class/System.Xaml/System.Xaml/XamlObjectWriter.cs:175 
  at System.Xaml.XamlWriter.WriteNode (System.Xaml.XamlReader reader) [0x00041]
in
/Users/ischyrus/Source/mono/mcs/class/System.Xaml/System.Xaml/XamlWriter.cs:63 
  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 
  at XamlTest4.Main2.Main (System.String[] args) [0x00000] in
/Users/ischyrus/Projects/XamlTest4/XamlTest4/Main.cs:15 

Expected Results:  
No exception

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