You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Stefano Bagnara (JIRA)" <se...@james.apache.org> on 2006/09/09 14:12:22 UTC

[jira] Created: (JAMES-611) Remove finalizers and make sure we always call dispose when unreferencing objects

Remove finalizers and make sure we always call dispose when unreferencing objects
---------------------------------------------------------------------------------

                 Key: JAMES-611
                 URL: http://issues.apache.org/jira/browse/JAMES-611
             Project: James
          Issue Type: Task
          Components: James Core
            Reporter: Stefano Bagnara
             Fix For: 3.0


Java does not ensure that finalizers are called when an object is no more referenced.
So we should make sure we always dispose resources we allocate.

A first review would be to remove the current finalizers (our objects already have the dispose method) and see what temporary files are not removed from temp after running our tests.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Assigned: (JAMES-611) Remove finalizers and make sure we always call dispose when unreferencing objects

Posted by "Stefano Bagnara (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-611?page=all ]

Stefano Bagnara reassigned JAMES-611:
-------------------------------------

    Assignee: Stefano Bagnara

> Remove finalizers and make sure we always call dispose when unreferencing objects
> ---------------------------------------------------------------------------------
>
>                 Key: JAMES-611
>                 URL: http://issues.apache.org/jira/browse/JAMES-611
>             Project: James
>          Issue Type: Task
>          Components: James Core
>            Reporter: Stefano Bagnara
>         Assigned To: Stefano Bagnara
>             Fix For: Trunk
>
>
> Java does not ensure that finalizers are called when an object is no more referenced.
> So we should make sure we always dispose resources we allocate.
> A first review would be to remove the current finalizers (our objects already have the dispose method) and see what temporary files are not removed from temp after running our tests.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Resolved: (JAMES-611) Remove finalizers and make sure we always call dispose when unreferencing objects

Posted by "Stefano Bagnara (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-611?page=all ]

Stefano Bagnara resolved JAMES-611.
-----------------------------------

    Resolution: Fixed

In trunk there are no more finalizers (only 1 in mordred and 1 in PoolConnEntry).
So the previous fixes seem to work.

> Remove finalizers and make sure we always call dispose when unreferencing objects
> ---------------------------------------------------------------------------------
>
>                 Key: JAMES-611
>                 URL: http://issues.apache.org/jira/browse/JAMES-611
>             Project: James
>          Issue Type: Task
>          Components: James Core
>            Reporter: Stefano Bagnara
>         Assigned To: Stefano Bagnara
>             Fix For: Trunk
>
>
> Java does not ensure that finalizers are called when an object is no more referenced.
> So we should make sure we always dispose resources we allocate.
> A first review would be to remove the current finalizers (our objects already have the dispose method) and see what temporary files are not removed from temp after running our tests.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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