You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Alasdair Nottingham (JIRA)" <ji...@apache.org> on 2011/01/07 11:22:46 UTC
[jira] Created: (ARIES-533) ContextProvider incorrectly closes
Context when GCed
ContextProvider incorrectly closes Context when GCed
----------------------------------------------------
Key: ARIES-533
URL: https://issues.apache.org/jira/browse/ARIES-533
Project: Aries
Issue Type: Bug
Affects Versions: 0.3
Reporter: Alasdair Nottingham
Assignee: Alasdair Nottingham
Fix For: 0.3
If I do the following:
Context ctx = new InitialContext().lookup("")
the ContextProvider becomes eligible for GC and if finalize is called will close the context which is still reachable.
Fix is to remove the finalize method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (ARIES-533) ContextProvider incorrectly closes
Context when GCed
Posted by "Alasdair Nottingham (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ARIES-533?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alasdair Nottingham resolved ARIES-533.
---------------------------------------
Resolution: Fixed
> ContextProvider incorrectly closes Context when GCed
> ----------------------------------------------------
>
> Key: ARIES-533
> URL: https://issues.apache.org/jira/browse/ARIES-533
> Project: Aries
> Issue Type: Bug
> Affects Versions: 0.3
> Reporter: Alasdair Nottingham
> Assignee: Alasdair Nottingham
> Fix For: 0.3
>
>
> If I do the following:
> Context ctx = new InitialContext().lookup("")
> the ContextProvider becomes eligible for GC and if finalize is called will close the context which is still reachable.
> Fix is to remove the finalize method.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.