[Mono-bugs] [Bug 80675][Maj] Changed - Directory.GetLastWriteTime() on non-existent directory doesn't throw exception

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Jan 30 13:34:23 EST 2007


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 joeshaw at novell.com.

http://bugzilla.ximian.com/show_bug.cgi?id=80675

--- shadow/80675	2007-01-30 13:21:39.000000000 -0500
+++ shadow/80675.tmp.15684	2007-01-30 13:34:23.000000000 -0500
@@ -1,14 +1,14 @@
 Bug#: 80675
 Product: Mono: Class Libraries
 Version: 1.2
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Major
 Component: CORLIB
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: joeshaw at novell.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -24,6 +24,24 @@
 1/1/1601 12:00:00 AM
 >>> DateTime.MinValue
 1/1/0001 12:00:00 AM
 
 I believe that second line should throw an IOException, based on the docs:
 http://msdn2.microsoft.com/en-us/library/system.io.directory.getlastwritetime(VS.71).aspx
+
+------- Additional Comments From joeshaw at novell.com  2007-01-30 13:34 -------
+I just wrote a test app for this.  It differs between the 1.x profile
+and 2.0:
+
+[joe at posthaste ~/svn/beagle]$ mcs -debug test-times.cs
+[joe at posthaste ~/svn/beagle]$ mono test-times.exe
+/bin: 1/5/2007 5:27:21 PM
+/ajwioef: IOException
+MinValue: 1/1/0001 12:00:00 AM
+
+[joe at posthaste ~/svn/beagle]$ gmcs -debug test-times.cs
+[joe at posthaste ~/svn/beagle]$ mono test-times.exe
+/bin: 1/5/2007 5:27:21 PM
+/ajwioef: 1/1/1601 12:00:00 AM
+MinValue: 1/1/0001 12:00:00 AM
+
+


More information about the mono-bugs mailing list