[jira] [Commented] (OFBIZ-9388) Writer closed but not in case of exception

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-9388) Writer closed but not in case of exception

Nicolas Malin (Jira)

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

Jacques Le Roux commented on OFBIZ-9388:
----------------------------------------

Done for another more complicated case at revision: 1797744

> Writer closed but not in case of exception
> ------------------------------------------
>
>                 Key: OFBIZ-9388
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-9388
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ALL COMPONENTS
>    Affects Versions: Trunk
>            Reporter: Jacques Le Roux
>            Assignee: Jacques Le Roux
>            Priority: Minor
>             Fix For: Upcoming Release
>
>
> This is an improvement only because no cases were reported. But obviously in case of unlucky exception after the Writer creation and before it's closed the Writer remains in memory.
> The solution is to use try-with-ressources when possible.



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