[Mono-bugs] [Bug 50799][Min] New - Bugs in System.Collections.Queue

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 10 Nov 2003 21:55:30 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by barce@frlp.utn.edu.ar.

http://bugzilla.ximian.com/show_bug.cgi?id=50799

--- shadow/50799	2003-11-10 21:55:30.000000000 -0500
+++ shadow/50799.tmp.8934	2003-11-10 21:55:30.000000000 -0500
@@ -0,0 +1,35 @@
+Bug#: 50799
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: barce@frlp.utn.edu.ar               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Bugs in System.Collections.Queue
+
+Reviewing the code I found these bugs in System.Collections.Queue
+This should be fixed to mantain compatibility with MS .NET
+I'm attaching more tests and a patch for these bugs.
+
+public class Queue
+- method: ICollection.Clone()
+	- Optimized. Removed unneeded instructions.
+- method: public static Queue Synchronized (Queue queue)
+	- ArgumentNullException.ParamName must be "queue", not null.
+- method: public virtual void TrimToSize()
+	- Must increment modCount.
+
+private class SyncQueue
+- method: public override object Clone ()
+	- Must return a synchronized (SyncStack) instance.
+- method: public override void TrimToSize ()
+	- Not implemented.