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

performFindResults.listIt closed but not in case of exception in 3 Scrum Groovy files

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Done
    • Trunk
    • 17.12.01
    • scrum
    • None

    Description

      This is an improvement only because no cases were reported. But obviously in case of unlucky exception after the call to the performFind service, and before it's closed, the EntityListIterator remains in memory.

      The solution is to use a try-catch-finally block because Groovy has not try-with-ressources.

      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: