[Mono-bugs] [Bug 43121][Wis] New - Exception Thrown in Mono, Not Thrown in MS .NET
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Thu, 15 May 2003 20:04:53 -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 tc@sonicated.com.
http://bugzilla.ximian.com/show_bug.cgi?id=43121
--- shadow/43121 Thu May 15 20:04:53 2003
+++ shadow/43121.tmp.11618 Thu May 15 20:04:53 2003
@@ -0,0 +1,46 @@
+Bug#: 43121
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: tc@sonicated.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Exception Thrown in Mono, Not Thrown in MS .NET
+
+Description of Problem:
+Whilst trying some regular expressions I came across a difference between
+the MS Runtime and the Mono Runtime. Mono throws a System.ArgumentException
+in the regular expressions library where MS .NET does not.
+
+This is a tiny testcase:
+
+Steps to reproduce the problem:
+1. Compile the follwing code in mcs or csc:
+--- test.cs ---
+using System;
+using System.Text.RegularExpressions;
+
+public class Test
+{
+ public static void Main()
+ {
+ string s = Regex.Replace("", @"\\", @"\");
+ }
+}
+--- eof ---
+2. Execute the code.
+
+Actual Results:
+Exception is thrown in mono.
+
+Expected Results:
+No exception is thrown in MS .NET and the program exits.