No functional change.

Adds a suggestion to report in case of EntityListIterator Not Closed

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798104 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2017-06-08 18:39:23 +00:00
parent d9a24d5a34
commit b291ec839b
@@ -525,7 +525,8 @@ public class EntityListIterator implements AutoCloseable, ListIterator<GenericVa
try {
if (!closed) {
this.close();
Debug.logError("\n====================================================================\n EntityListIterator Not Closed for Entity [" + (modelEntity==null ? "" : modelEntity.getEntityName()) + "], caught in Finalize\n ====================================================================\n", module);
Debug.logError("\n==============================================================================\n EntityListIterator Not Closed for Entity [" + (modelEntity==null ? "" : modelEntity.getEntityName())
+ "], caught in Finalize\n Please report by creating an OFBIZ-9297 subtask with the stack trace, thanks\n==============================================================================\n", module);
}
} catch (Exception e) {
Debug.logError(e, "Error closing the SQLProcessor in finalize EntityListIterator", module);