Uploaded image for project: 'Commons Dbcp'
  1. Commons Dbcp
  2. DBCP-233

Allow connection, statement, and result set to be closed multiple times

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3
    • Labels:
      None

      Description

      This patch allows Connection, Statement, PreparedStatement, CallableStatement and ResultSet to be closed multiple times. The first time close is called the resource is closed and any subsequent calls have no effect. This behavior is required as per the JavaDocs for these classes. The patch adds tests for closing all types multiple times and updates any tests that incorrectly assert that a resource can be closed more then once.

      This patch fixes DBCP-134 and DBCP-3

        Attachments

        1. CloseTwice.patch
          13 kB
          Dain Sundstrom

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dain Dain Sundstrom
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: