Brenda Finn created AMQ-5275:
--------------------------------
Summary: ResultSet needs to be released
Key: AMQ-5275
URL: https://issues.apache.org/jira/browse/AMQ-5275
Project: ActiveMQ
Issue Type: Bug
Components: Broker
Affects Versions: 5.9.0
Environment: Solaris 5.10
Reporter: Brenda Finn
Priority: Minor
As part of code analysis using pmd and checkstyle tools, it was reported that
the ResultSet is not closed in the following file
org.apache.activemq.store.jdbc.adapter.TransactDatabaseLocker
Method: doStart():
ResultSet is created on line #51 but is never released. It appears as if it is
used as a locking mechanism so likely there is not a lot of data that needs to
be closed, but for best practices, it should be closed to free up any external
resources.
org.apache.activemq.store.jdbc.LeaseDatabaseLocker
Method: reportLeasOwnerShipAndDuration()
ResultSet is created on line #105 but is never released.
--
This message was sent by Atlassian JIRA
(v6.2#6252)