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: 17.12.01
    • 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.

        Attachments

          Activity

            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: