Uploaded image for project: 'Commons Pool'
  1. Commons Pool
  2. POOL-44

[pool] Some ObjectPool.borrowObject() implementations do not call validateObject()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.3
    • None
    • Operating System: other
      Platform: All

    • 36719

    Description

      The borrowObject() methods of StackObjectPool and SoftReferenceObjectPool do not
      check the validateObject() method before returning an object.

      This goes against the expected behavior diagramed in
      http://jakarta.apache.org/commons/pool/guide/sequencediagrams.html

      GenericObjectPool does have correct behavior.

      I'll try to submit a patch if I have time latter this week.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--pool-borrow-validate.patch
          13 kB
          Sandy McArthur (from Bugzilla import)

        Activity

          People

            Unassigned Unassigned
            sandymac@apache.org Sandy McArthur (from Bugzilla import)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: