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

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: Trunk
    • Fix Version/s: Upcoming Release
    • Component/s: scrum
    • Labels:
      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.

        Activity

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

        Done with r1797788

        Show
        jacques.le.roux Jacques Le Roux added a comment - Done with r1797788

          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