ofbiz-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacques Le Roux (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (OFBIZ-9385) EntityListIterator closed but not in case of exception
Date Thu, 01 Jun 2017 08:15:04 GMT

    [ https://issues.apache.org/jira/browse/OFBIZ-9385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16032621#comment-16032621
] 

Jacques Le Roux edited comment on OFBIZ-9385 at 6/1/17 8:14 AM:
----------------------------------------------------------------

Done at revision: 1797159 for framework/common


was (Author: jacques.le.roux):
Done at revision: 1797159 for common

> EntityListIterator closed but not in case of exception
> ------------------------------------------------------
>
>                 Key: OFBIZ-9385
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-9385
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: ALL COMPONENTS
>    Affects Versions: Trunk
>            Reporter: Jacques Le Roux
>            Assignee: Jacques Le Roux
>            Priority: Minor
>             Fix For: Upcoming Release
>
>
> I found several cases. This is an improvement only because no cases were reported. But
obviously in case of unlucky exception after the EntityListIterator creation and before it's
closed the EntityListIterator remains in memory. It should be closed in EntityListIterator.finalize()
but the less happens there the better.
> The solution is to use try-with-ressources when (easily) possible (some cases are quite
convoluted)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message