commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgo...@apache.org
Subject svn commit: r833538 - in /commons/proper/vfs/trunk: core/src/main/java/org/apache/commons/vfs/provider/AbstractFileSystem.java xdocs/changes.xml
Date Fri, 06 Nov 2009 19:56:28 GMT
Author: rgoers
Date: Fri Nov  6 19:56:25 2009
New Revision: 833538

URL: http://svn.apache.org/viewvc?rev=833538&view=rev
Log:
Apply patch for VFS-287

Modified:
    commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/AbstractFileSystem.java
    commons/proper/vfs/trunk/xdocs/changes.xml

Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/AbstractFileSystem.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/AbstractFileSystem.java?rev=833538&r1=833537&r2=833538&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/AbstractFileSystem.java
(original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/provider/AbstractFileSystem.java
Fri Nov  6 19:56:25 2009
@@ -524,6 +524,10 @@
             if (listeners != null)
             {
                 listeners.remove(listener);
+                if (listeners.isEmpty())
+                {
+                    listenerMap.remove(file.getName());
+                }
             }
         }
     }

Modified: commons/proper/vfs/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/xdocs/changes.xml?rev=833538&r1=833537&r2=833538&view=diff
==============================================================================
--- commons/proper/vfs/trunk/xdocs/changes.xml (original)
+++ commons/proper/vfs/trunk/xdocs/changes.xml Fri Nov  6 19:56:25 2009
@@ -23,8 +23,11 @@
 
   <body>
     <release version="2.0" date="in SVN" description="">
+      <action dev="rgoers" type="fix" issue="VFS-287" due-to="Mircea-Eugen Ionica">
+        LocalFileName objects are not released from AbstractFileSystem.listenerMap when all
listeners are removed.
+      </action>
       <action dev="rgoers" type="fix" issue="VFS-216" due-to="Reetu Mutti">
-        The FTP Configuration includes an option to set a timeout for the data connection,
but not for the socket 
+        The FTP Configuration includes an option to set a timeout for the data connection,
but not for the socket
         timeout. This is a problem, as idle sockets can cause your download to hang forever
and never timeout.
       </action>
       <action dev="rgoers" type="fix" issue="VFS-289" due-to="Kirill Safonov">



Mime
View raw message