[Mono-bugs] [Bug 61120][Nor] New - FileNotFoundException does not set FileName property
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sat, 3 Jul 2004 02:25:17 -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 mathpup@mylinuxisp.com.
http://bugzilla.ximian.com/show_bug.cgi?id=61120
--- shadow/61120 2004-07-03 02:25:17.000000000 -0400
+++ shadow/61120.tmp.27842 2004-07-03 02:25:17.000000000 -0400
@@ -0,0 +1,52 @@
+Bug#: 61120
+Product: Mono: Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: mathpup@mylinuxisp.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: FileNotFoundException does not set FileName property
+
+Description of Problem:
+
+When attempting to open a Stream using the FileStream constructor that
+takes a filename and FileMode, if the file does not exist, Mono correctly
+throws a FileNotFoundException. The problem is that Mono does not set the
+FileName property of FileNotFoundException with the filename given in the
+FileStream constructor call. Rotor and .NET do. Setting the FileName
+property permits giving more descriptive diagnostics.
+
+
+
+Steps to reproduce the problem:
+1. mcs filestream2.cs
+2. mono filestream2.exe
+3.
+
+
+Actual Results:
+
+Could not open file:
+
+
+Expected Results:
+
+Could not open file: /home/marcus/alpha/test-cases/DoesNotExist
+
+(The path will vary based on your installation, of course.)
+
+How often does this happen?
+
+Always
+
+
+Additional Information: