[Mono-bugs] [Bug 38061][Wis] New - mono fails to throw an exception in String.Format
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Thu, 13 Feb 2003 23:11:56 -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 mathpup@mylinuxisp.com.
http://bugzilla.ximian.com/show_bug.cgi?id=38061
--- shadow/38061 Thu Feb 13 23:11:56 2003
+++ shadow/38061.tmp.3886 Thu Feb 13 23:11:56 2003
@@ -0,0 +1,49 @@
+Bug#: 38061
+Product: Mono/Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: mathpup@mylinuxisp.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mono fails to throw an exception in String.Format
+
+Description of Problem:
+
+According to ECMA, String.Format(string format, object arg0) should throw an
+exception if arg0 is null. Mono does not throw an exception in this case, but .NET
+does. (Surprisingly, Rotor does not.)
+
+Note that the other overloads, such as String.Format(string format, object arg0,
+object arg1) are not supposed to throw exceptions according to ECMA.
+
+Steps to reproduce the problem:
+1. mcs format2.cs
+2. mono format2.exe
+
+
+Actual Results:
+
+No output
+
+
+Expected Results:
+
+Unhandled Exception: System.ArgumentNullException: Value cannot be null.
+Parameter name: args
+at System.String.Format(IFormatProvider provider, String format, Object[] args)
+
+
+How often does this happen?
+
+Always
+
+Additional Information: