[Mono-bugs] [Bug 527887] New: XObject.Annotation method throws an ArgumentException instead of returning null

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Aug 4 05:37:14 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=527887


           Summary: XObject.Annotation method throws an ArgumentException
                    instead of returning null
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: i686
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.XML
        AssignedTo: atsushi at ximian.com
        ReportedBy: thomas.liebethal at hermos.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.2)
Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)

As detailed in the MSDN Class Library Documentation
(http://msdn.microsoft.com/en-us/library/bb350955.aspx) the method "public
object Annotation (Type type)" of System.Xml.Linq.XObject should return null if
no annotation is found. 

In mono it throws an ArgumentException instead.

Reproducible: Always

Steps to Reproduce:
1. Create a XObject.
2. Call the Annotation method for any type.

Actual Results:  
An ArgumentException is thrown

Expected Results:  
should return null

-- 
Configure bugmail: http://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