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 [EMAIL PROTECTED]

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

--- shadow/79250        2007-06-26 07:29:16.000000000 -0400
+++ shadow/79250.tmp.1863       2007-06-26 15:50:06.000000000 -0400
@@ -1,13 +1,13 @@
 Bug#: 79250
 Product: Mono: Class Libraries
 Version: 1.1
 OS: unknown
 OS Details: 
-Status: RESOLVED   
-Resolution: FIXED
+Status: REOPENED   
+Resolution: 
 Severity: Unknown
 Priority: Wishlist
 Component: CORLIB
 AssignedTo: [EMAIL PROTECTED]                            
 ReportedBy: [EMAIL PROTECTED]               
 QAContact: [EMAIL PROTECTED]
@@ -107,6 +107,62 @@
 //When can I expect the fix available in snapshots|installer?
 
 //Regards, Robert.
 
 ------- Additional Comments From [EMAIL PROTECTED]  2007-06-26 07:29 -------
 The fix will be in the next release.  I have no idea when that will be.
+
+------- Additional Comments From [EMAIL PROTECTED]  2007-06-26 15:50 -------
+The runtime still outputs a warning for any FileShare value 
+containing FileShare.Delete flag.
+
+To reproduce, compile and run the following code:
+
+using System;
+using System.IO;
+
+public class Program
+{
+       static void Main ()
+       {
+               using (FileStream fs = new FileStream ("test.txt", 
+FileMode.OpenOrCreate, FileAccess.Write, FileShare.Delete | 
+FileShare.Read)) {
+                       fs.WriteByte (0x05);
+               }
+
+               using (FileStream fs = new FileStream ("test.txt", 
+FileMode.OpenOrCreate, FileAccess.Write, FileShare.Delete | 
+FileShare.Write)) {
+                       fs.WriteByte (0x05);
+               }
+
+               using (FileStream fs = new FileStream ("test.txt", 
+FileMode.OpenOrCreate, FileAccess.Write, FileShare.Delete | 
+FileShare.ReadWrite)) {
+                       fs.WriteByte (0x05);
+               }
+
+               using (FileStream fs = new FileStream ("test.txt", 
+FileMode.OpenOrCreate, FileAccess.Write, FileShare.Delete | 
+FileShare.Inheritable)) {
+                       fs.WriteByte (0x05);
+               }
+       }
+}
+
+Expected result:
+
+Successful execution with no warnings.
+
+Actual result:
+
+** (test.exe:1480): WARNING **: System.IO.FileShare has unknown value 
+0x5
+
+** (test.exe:1480): WARNING **: System.IO.FileShare has unknown value 
+0x6
+
+** (test.exe:1480): WARNING **: System.IO.FileShare has unknown value 
+0x7
+
+Let me know if I should submit a separate bug report for this.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to