commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris DiGiano (JIRA)" <>
Subject [jira] Commented: (VFS-50) Threading issue with AbstractFileSystem.fireEvent
Date Wed, 31 May 2006 17:03:31 GMT
    [ ] 

Chris DiGiano commented on VFS-50:

I've confirmed that Mario's slightly modified fix addresses the problem I was noticing in
my own project. Thanks Mario!

> Threading issue with AbstractFileSystem.fireEvent
> -------------------------------------------------
>          Key: VFS-50
>          URL:
>      Project: Commons VFS
>         Type: Bug

>     Reporter: Chris DiGiano
>     Assignee: Mario Ivankovits
>     Priority: Minor
>      Fix For: Nightly Builds

> I make heavy use of DelegateFileObject in my code and recently ran into a threading issue
when a change in one file was trying to automatically update dependent DelegateFileObjects.
While events where still being propagated, one DelegateFileObject removed itself as an event
listener. This caused an index-of-range problem in AbstractFileSystem.fireEvent because the
listener list had shrunk, but the "count" had already been fixed.
> It appears that the current implementation of fireEvent is not entirely thread safe,
if event handlers can still change the listener list in place. I will attach a patch that
works for me.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message