[Mono-bugs] [Bug 38674][Nor] Changed - TimeSpan.MinValue.Negate () does not throw

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Thu, 6 Mar 2003 08:02:33 -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 ndrochak@gol.com.

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

--- shadow/38674	Wed Feb 26 00:28:18 2003
+++ shadow/38674.tmp.8785	Thu Mar  6 08:02:33 2003
@@ -1,22 +1,21 @@
 Bug#: 38674
-Product: Mono/Class Libraries
+Product: Mono/MCS
 Version: unspecified
 OS: Red Hat 8.0
 OS Details: 
 Status: NEW   
 Resolution: 
 Severity: Unknown
 Priority: Normal
-Component: CORLIB
+Component: Misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: ndrochak@gol.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
-Cc: 
 Summary: TimeSpan.MinValue.Negate () does not throw
 
 The following simple test does not throw an exception like it should:
 
 using System;
 
@@ -54,6 +53,13 @@
 +                       throw new OverflowException ("This TimeSpan 
 value is MinValue and cannot be negated.")
 +               return new TimeSpan (-_ticks);
         }
 
         public static TimeSpan Parse (string s)
+
+------- Additional Comments From ndrochak@gol.com  2003-03-06 08:02 -------
+Patching TimeSpan.cs to "work around" this potential mcs or runtime
+bug, not sure which.  We need the error message in the exception anyway.
+
+Leaving open but moving it to mcs to have someone look at it.  There
+was a bug in mcs ith checked byte values before, wasn't there?