You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Bernd Eckenfels (Jira)" <ji...@apache.org> on 2024/05/27 15:25:00 UTC

[jira] [Created] (VFS-853) Due to double weak references the file listener are not executed

Bernd Eckenfels created VFS-853:
-----------------------------------

             Summary: Due to double weak references the file listener are not executed
                 Key: VFS-853
                 URL: https://issues.apache.org/jira/browse/VFS-853
             Project: Commons VFS
          Issue Type: Bug
            Reporter: Bernd Eckenfels
            Assignee: Bernd Eckenfels
             Fix For: 2.10.0


On DelegatedFileObjects the Listener is registered with a WeakReference listener. The original code which did that has a (errounous) duplication of listeners. This leads to the problem that the "middle" listener is never referenced and therefore imediatelly collected, which in turn leads to removal of the "outer" listener.

I have added a testcase which reproduces the problem and does not fail when duplication is removed.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)