[Mono-bugs] [Bug 80873][Cos] New - [Patch] Random Spelling Error

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Feb 16 03:58: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 mark.a.nicolosi at gmail.com.

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

--- shadow/80873	2007-02-16 03:58:17.000000000 -0500
+++ shadow/80873.tmp.20364	2007-02-16 03:58:17.000000000 -0500
@@ -0,0 +1,62 @@
+Bug#: 80873
+Product: Mono: Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Cosmetic
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: mark.a.nicolosi at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [Patch] Random Spelling Error
+
+Hi, this is my first bug & patch. Hope it's not to minor.
+
+Description of Problem:
+"Than" is spelled as "then" in some exception messages in System.Random.
+
+Steps to reproduce the problem:
+1. 
+using System;
+
+public class RandomSpellingError
+{
+    public static int Main ()
+    {
+        Random r = new Random ();
+        r.Next (-1);
+
+        return 0;
+    }
+}
+
+Actual Results:
+Unhandled Exception: System.ArgumentOutOfRangeException: Argument is out of
+range.
+Parameter name: Max value is less then min value.
+                                  ----
+  at System.Random.Next (Int32 maxValue) [0x00000] 
+  at RandomSpellingError.Main () [0x00000] 
+
+
+Expected Results:
+Unhandled Exception: System.ArgumentOutOfRangeException: Argument is out of
+range.
+Parameter name: Max value is less than min value.
+                                  ----
+  at System.Random.Next (Int32 maxValue) [0x00000] 
+  at RandomSpellingError.Main () [0x00000] 
+
+How often does this happen? 
+Everytime the exception is thrown.
+
+Additional Information:
+
+This is my first patch and I hope it isn't too minor. I just noticed it and
+thought it's about time I contribute something open source community.


More information about the mono-bugs mailing list