[Mono-bugs] [Bug 41845][Nor] New - Converting date string with large year doesn't throw correct exception
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Thu, 24 Apr 2003 09:35:51 -0400 (EDT)
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=41845
--- shadow/41845 Thu Apr 24 09:35:51 2003
+++ shadow/41845.tmp.17301 Thu Apr 24 09:35:51 2003
@@ -0,0 +1,28 @@
+Bug#: 41845
+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: Converting date string with large year doesn't throw correct exception
+
+The code sample below should throw an ArgumentOutOfRangeException, but it
+throws a Format Exception instead:
+--------------------------------------------------------
+using System;
+class C {
+
+ public static void Main () {
+ Convert.ToDateTime("20002-25-01");
+ }
+}