Fixes a problem that was preventing mono from compiling
authorRob Wilkens <RobWilkens@gmail.com>
Mon, 2 Jul 2012 02:02:21 +0000 (22:02 -0400)
committerRob Wilkens <RobWilkens@gmail.com>
Mon, 2 Jul 2012 02:02:21 +0000 (22:02 -0400)
Somehow the compiler became more strict, and a not-implemented class is now
causing mono to fail to build.

The attached patch doesn't really fix anything besides letting it compile.

I was nice enough to throw a NotImplementedException() on the default
constructor.

The compile time error was:
System.IO.MemoryMappedFiles/MemoryMappedFileSecurity.cs(35,15): error CS0122:
`System.Security.AccessControl.ObjectSecurity
<System.IO.MemoryMappedFiles.MemoryMappedFileRights>.ObjectSecurity()' is
inaccessible due to its protection level

Feel free to reject this patch if I am the only one seeing this problem (on
Linux x86_64 build) after most recent git clone of mono/master.

mcs/class/System.Core/System.IO.MemoryMappedFiles/MemoryMappedFileSecurity.cs

index 7b9e637e9809a5e10e207fe494f2f04134771bc5..ca6ee540654cb465142d42e3712f1f4cd00919da 100644 (file)
@@ -34,6 +34,9 @@ namespace System.IO.MemoryMappedFiles
 {
        public class MemoryMappedFileSecurity : ObjectSecurity<MemoryMappedFileRights>
        {
+               public MemoryMappedFileSecurity() : base (false, ResourceType.Unknown) {
+                       throw new NotImplementedException();
+               }
        }
 }