[Mono-list] spec inconsistencies?
Mike Gray
mike@mikegray.org
Tue, 07 May 2002 18:39:22 -0400
What are you doing for inconsistencies related to the ECMA/MS docs? For
example, look at the System.IO.File class. Many of the methods (AppendText,
Copy, Create, CreateText, Delete, etc) throw
System.IO.DirectoryNotFoundException's when the filename parameter contains
a directory that does not exist (of course if the directory exists and the
filename within it doesn't you will get System.IO.FileNotFoundException).
For some reason though, G/SetCreationTime, G/SetLastAccessTime, and
G/SetLastWriteTime would throw a System.IO.IOException instead. For
consistency, it would seem to make sense to throw the
DirectoryNotFoundException for those methods as well when the filename
parameter contains a directory that does not exist, no?
Mike Gray
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com