Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-9388

Writer closed but not in case of exception

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: Trunk
    • Fix Version/s: Upcoming Release
    • Component/s: ALL COMPONENTS
    • Labels:
      None

      Description

      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.

        Activity

        Hide
        jacques.le.roux Jacques Le Roux added a comment -

        Done for several cases at revision: 1797742

        Show
        jacques.le.roux Jacques Le Roux added a comment - Done for several cases at revision: 1797742
        Hide
        jacques.le.roux Jacques Le Roux added a comment -

        Done for another more complicated case at revision: 1797744

        Show
        jacques.le.roux Jacques Le Roux added a comment - Done for another more complicated case at revision: 1797744
        Hide
        jacques.le.roux Jacques Le Roux added a comment -

        This is completely done

        Show
        jacques.le.roux Jacques Le Roux added a comment - This is completely done

          People

          • Assignee:
            jacques.le.roux Jacques Le Roux
            Reporter:
            jacques.le.roux Jacques Le Roux
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development