[Mono-bugs] [Bug 80928][Wis] New - [System.StringComparer] StringComparer isn't *really* Serializable

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Feb 22 00:20:17 EST 2007


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 dmitchell at logos.com.

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

--- shadow/80928	2007-02-22 00:20:17.000000000 -0500
+++ shadow/80928.tmp.27945	2007-02-22 00:20:17.000000000 -0500
@@ -0,0 +1,42 @@
+Bug#: 80928
+Product: Mono: Class Libraries
+Version: 1.0
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: dmitchell at logos.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [System.StringComparer] StringComparer isn't *really* Serializable
+
+Please fill in this template when reporting a bug, unless you know what you are doing.
+Description of Problem:
+StringComparer is marked as Serializable, but the classes that descend from it (StringComparer
++StringCultureComparer, +OrdinalComparer, and +OrdinalIgnoreCaseComparer) are not marked 
+as Serializable, which results in an exception any time that an attempt to serialize a 
+StringComparer is made.
+
+Steps to reproduce the problem:
+1. Get StringComparer.CurrentCulture, StringComparer.CurrentCultureIgnoreCase, etc.
+2. Try to Serialize it
+3. Experience the pain of unexpected exceptions
+
+Actual Results:
+Exceptions are thrown because the non-abstract classes are not marked as Serializable
+
+Expected Results:
+No Exceptions should be thrown
+
+How often does this happen? 
+Always
+
+Additional Information:
+The presence of the Serializable attribute on each of the classes seems to be the only thing 
+preventing proper behavior for these classes.


More information about the mono-bugs mailing list