You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by bu...@apache.org on 2003/07/11 19:34:59 UTC

DO NOT REPLY [Bug 21521] New: - [PATCH] Fortress' PerThreadComponentHandler does not dispose components properly

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21521>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21521

[PATCH] Fortress' PerThreadComponentHandler does not dispose components properly

           Summary: [PATCH] Fortress' PerThreadComponentHandler does not
                    dispose components properly
           Product: Avalon
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Avalon
        AssignedTo: dev@avalon.apache.org
        ReportedBy: unico@hippo.nl


PerThreadComponentHandler implements doDispose() method as follows:

disposeComponent( m_instance.get() );

Since m_instance is a ThreadLocal only the component instance associated with
the thread managing the disposal of the ComponentHandler will get disposed.

This patch records all component instances created in order to be able to
dispose them properly.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org