[Mono-bugs] [Bug 38328][Nor] New - Byte.Parse doesn't overflow

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Wed, 19 Feb 2003 10:49:36 -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=38328

--- shadow/38328	Wed Feb 19 10:49:36 2003
+++ shadow/38328.tmp.29823	Wed Feb 19 10:49:36 2003
@@ -0,0 +1,32 @@
+Bug#: 38328
+Product: Mono/Class Libraries
+Version: unspecified
+OS: Red Hat 8.0
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: ndrochak@gol.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Byte.Parse doesn't overflow
+
+Byte.Parse doesn't throw and OverflowException as it should.  Here's a
+simple test case:
+
+using System;
+
+namespace N
+{
+        public class X {
+                public static void Main() {
+                        int OverInt = Byte.MaxValue + 1;
+                        Byte.Parse(OverInt.ToString());
+                }
+        }
+}