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

Writer closed but not in case of exception

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Done
    • Trunk
    • 17.12.01
    • ALL COMPONENTS
    • 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

            jleroux Jacques Le Roux
            jleroux Jacques Le Roux
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: