Deepak Dixit created OFBIZ-13399:
------------------------------------
Summary: Use try-with-resources for EntityListIterator
Key: OFBIZ-13399
URL: https://issues.apache.org/jira/browse/OFBIZ-13399
Project: OFBiz
Issue Type: New Feature
Reporter: Deepak Dixit
Replace manual handling of {{EntityListIterator}} with try-with-resources (or
Groovy {{{}withCloseable{}}}) to ensure proper resource management and avoid
potential resource leaks.
Currently, iterators are being closed manually using {{close()}} or sometimes
not closed.
This can lead to:
* Open JDBC {{{}ResultSet{}}}/cursor leaks
* Increased memory usage
* Connection/resource exhaustion under load
--
This message was sent by Atlassian Jira
(v8.20.10#820010)