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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=77633 --- shadow/77633 2006-02-24 05:58:13.000000000 -0500 +++ shadow/77633.tmp.17942 2006-02-24 05:58:13.000000000 -0500 @@ -0,0 +1,52 @@ +Bug#: 77633 +Product: Mono: Class Libraries +Version: 1.1 +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Wishlist +Component: System +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: DateTime.Parse() throws System.ArgumentOutOfRangeException + +Description of Problem: +DateTime.Parse() throws an unexpected/undocumented exception type when it's +feed with a invalid year. + +Steps to reproduce the problem: +// throws expected FormatException +DateTime dt = DateTime.Parse("1234"); + +// throws unexpected ArgumentOutOfRange exception +DateTime dt = DateTime.Parse("12345"); + +Actual Results: + +Exception Type: +System.ArgumentOutOfRangeException + +Exception Message: +Valid values are between 1 and 9999 inclusive +Parameter name: year + +Exception StackTrace: +in <0x001b0> System.DateTime:Parse (System.String s, IFormatProvider fp, +DateTimeStyles styles) +in <0x00016> System.DateTime:Parse (System.String s, IFormatProvider fp) +in <0x00013> System.DateTime:Parse (System.String s) + +Expected Results: +exception of type FormatException + +How often does this happen? +always + + +Additional Information: _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
