[ 
https://issues.apache.org/jira/browse/SYNAPSE-701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12921874#action_12921874
 ] 

Andreas Veithen commented on SYNAPSE-701:
-----------------------------------------

The method is not redundant because there is no way to guarantee that the 
release method is ever called. This issue is caused by an architectural flaw in 
Axis2 [1]. By removing this method, you will create a resource leak that may 
cause a disk full error.

[1] http://veithen.blogspot.com/2009/10/inside-axis2-and-axiom-can-somebody.html

> Remove the finalize method of the TemporaryData.java in commons module of 
> synapse
> ---------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-701
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-701
>             Project: Synapse
>          Issue Type: Bug
>            Reporter: Supun Kamburugamuva
>            Assignee: Supun Kamburugamuva
>
> A finalize method can cause delayed garbage collection as well as it doesn't 
> guarantee a clean. This can lead to potential Out of Memory errors if these 
> classes are used very frequently. Also this method is redundant because this 
> object has a explicit release method. So I suggest we remove this redundant 
> method.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to