[Mono-bugs] [Bug 576039] New: WaitHandle.WaitAll doesn't raise ArgumentNullException when the WaitHandle[] parameter has 0 elements

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Feb 2 03:19:31 EST 2010


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

http://bugzilla.novell.com/show_bug.cgi?id=576039#c0


           Summary: WaitHandle.WaitAll doesn't raise ArgumentNullException
                    when the WaitHandle[] parameter has 0 elements
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: jorge.matias at fractaliasoftware.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US)
AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.38 Safari/532.0

According .NET documentation at
http://msdn.microsoft.com/en-us/library/z6w25xa6.aspx:

Exception
ArgumentNullException

Condition    
..
-or-
waitHandles is an array with no elements and the .NET Framework version is 2.0
or later.

Reproducible: Always

Steps to Reproduce:
WaitHandle[] autoEvents = new WaitHandle[0];
WaitHandle.WaitAll(autoEvents);
Actual Results:  
No exception is raised.

Expected Results:  
This is what .NET prints:

System.ArgumentNullException: Value cannot be null.
Parameter name: waitHandles
   at System.Threading.WaitHandle.WaitAll(WaitHandle[] waitHandles, Int32
millis
econdsTimeout, Boolean exitContext)
   at System.Threading.WaitHandle.WaitAll(WaitHandle[] waitHandles)

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


More information about the mono-bugs mailing list