[Mono-bugs] [Bug 72221][Nor] Changed - double tryparse with hex numbers returns opposite of .net

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Dec 15 10:10:40 EST 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 sebastien at ximian.com.

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

--- shadow/72221	2005-12-12 19:12:47.000000000 -0500
+++ shadow/72221.tmp.21106	2005-12-15 10:10:40.000000000 -0500
@@ -1,22 +1,21 @@
 Bug#: 72221
 Product: Mono: Class Libraries
-Version: 1.0
-OS: unknown
+Version: 1.1
+OS: All
 OS Details: 
 Status: NEEDINFO   
 Resolution: 
 Severity: Unknown
 Priority: Normal
 Component: CORLIB
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: jluke at cfl.rr.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 URL: 
-Cc: 
 Summary: double tryparse with hex numbers returns opposite of .net
 
 this little test prints true on mono and
 false on .net  I would have expected "0xdead" to be the format it expected,
 but it only seems to work like this. The MonoDevelop lexer uses this to
 test if a number is valid.
@@ -64,6 +63,13 @@
 
 
 ------- Additional Comments From atsushi at ximian.com  2005-12-12 19:12 -------
 I once talked with akiramei and he pointed out that throwing
 ArgumentException because of NumberStyles is different from throwing
 exceptions because of the actual number.
+
+------- Additional Comments From sebastien at ximian.com  2005-12-15 10:10 -------
+The first part (a) is fixed in SVN (r54451) to match MS behaviour
+under 2.0 (i.e. throwing inside TryParse). Single is also fixed in the
+same patch. Unit tests added for both Double/Single in r54452.
+
+Anyone with a clue for (b) ?


More information about the mono-bugs mailing list