Author: kostat
Date: 2006-08-10 05:49:03 -0400 (Thu, 10 Aug 2006)
New Revision: 63577

Modified:
   trunk/mcs/class/System.Web/System.Web/XmlSiteMapProvider.cs
Log:
TARGET_JVM: Java platform does not support file notifications

Modified: trunk/mcs/class/System.Web/System.Web/XmlSiteMapProvider.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web/XmlSiteMapProvider.cs 2006-08-10 
08:32:56 UTC (rev 63576)
+++ trunk/mcs/class/System.Web/System.Web/XmlSiteMapProvider.cs 2006-08-10 
09:49:03 UTC (rev 63577)
@@ -47,7 +47,7 @@
                bool building;
                string file;
                SiteMapNode root = null;
-#if !TARGET_JVM
+#if !TARGET_JVM // Java platform does not support file notifications
                FileSystemWatcher watcher;
 #endif
 
@@ -169,8 +169,10 @@
 
                protected virtual void Dispose (bool disposing)
                {
+#if !TARGET_JVM // Java platform does not support file notifications
                        if (disposing)
                                watcher.Dispose ();
+#endif
                }
 
                public void Dispose ()
@@ -203,8 +205,8 @@
                                file = 
Path.Combine(HttpRuntime.AppDomainAppPath, file);
                        else
                                file = 
UrlUtils.ResolvePhysicalPathFromAppAbsolute (file);
-                               
-#if !TARGET_JVM
+
+#if !TARGET_JVM // Java platform does not support file notifications
                        if (File.Exists (file)) {
                                watcher = new FileSystemWatcher ();
                                watcher.Path = Path.GetFullPath 
(Path.GetDirectoryName (file));

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to