[Mono-bugs] [Bug 75625][Nor] New - "Dictionary<TKey, TValue> (Dictionary<TKey, TValue>)" constructor broken

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Jul 24 18:11:37 EDT 2005


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 roosmaa at gmail.com.

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

--- shadow/75625	2005-07-24 18:11:37.000000000 -0400
+++ shadow/75625.tmp.20189	2005-07-24 18:11:37.000000000 -0400
@@ -0,0 +1,36 @@
+Bug#: 75625
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: Mono from svn HEAD
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: roosmaa at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: "Dictionary<TKey, TValue> (Dictionary<TKey, TValue>)" constructor broken
+
+Hi,
+
+The Dictionary class constructor "Dictionary<TKey, TValue>
+(Dictionary<TKey, TValue>)" fails to make a copy of an existing dictionary.
+It throws the folowing exception:
+Unhandled Exception: System.InvalidCastException: Cannot cast from source
+type to destination type.
+in [0x00034] (at
+/home/me/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:134)
+System.Collections.Generic.Dictionary`2[System.String,System.String]:.ctor
+(IDictionary`2 , IEqualityComparer`1 )
+in [0x00003] (at
+/home/me/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:120)
+System.Collections.Generic.Dictionary`2[System.String,System.String]:.ctor
+(IDictionary`2 )
+in [0x00017] (at /tmp/Dictionary.cs:10) Test:Main ()
+
+I have added a test case.


More information about the mono-bugs mailing list