[Mono-bugs] [Bug 78654][Maj] New - Default values for non-string type attributes are not converted to the appropriate type for ApplicationSettingsBase.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jun 15 08:12:24 EDT 2006


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

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

--- shadow/78654	2006-06-15 08:12:24.000000000 -0400
+++ shadow/78654.tmp.2065	2006-06-15 08:12:24.000000000 -0400
@@ -0,0 +1,28 @@
+Bug#: 78654
+Product: Mono: Class Libraries
+Version: 1.1
+OS: Debian Woody
+OS Details: Debian Sid
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: tilps.kilm at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Default values for non-string type attributes are not converted to the appropriate type for ApplicationSettingsBase.
+
+Description of Problem:
+ApplicationSettingsBase sets up the settings properties with default values
+which are all strings regardless of the type of the property.
+This causes programs to crash which have been ported from Microsoft
+implementation of .Net as the autogenerated settings code blindly casts to
+the correct type in the getter for each property.
+
+Attached is a patch to use type converter to convert from string to the type.
+This will throw a NotSupportedException if the type cannot be converted
+from string, which may or maynot be the optimal design.


More information about the mono-bugs mailing list