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

org.apache.commons.dbcp2.datasources.InstanceKeyDataSourceFactory.closeAll() does not close all

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.4.0
    • None

    Description

      org.apache.commons.dbcp2.datasources.InstanceKeyDataSourceFactory.closeAll() does not close all if an exception is thrown while closing one of the resources.

          /**
           * Closes all pools associated with this class.
           *
           * @throws Exception
           *             a {@link ListException} containing all exceptions thrown by {@link InstanceKeyDataSource#close()}
           * @see InstanceKeyDataSource#close()
           * @see ListException
           * @since 2.4.0 throws a {@link ListException} instead of, in 2.3.0 and before, the first exception thrown by
           *        {@link InstanceKeyDataSource#close()}.
           */
      

      Attachments

        Activity

          People

            ggregory Gary D. Gregory
            ggregory Gary D. Gregory
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: