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

SoftReferenceObjectPool swallows underlying exceptions when activating / validating newly created object

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.5, 1.6
    • 1.6.1
    • None

    Description

      On lines 145 - 149 ( http://grepcode.com/file/repo1.maven.org/maven2/commons-pool/commons-pool/1.6/org/apache/commons/pool/impl/SoftReferenceObjectPool.java/#145) when NoSuchElementException is thrown, it inherits only message of cause, not cause itself.

      Sometimes such messages could be cryptic and also they hide stacktrace, which would help diagnosing problem.

      This also affects current HEAD.

      Attachments

        Activity

          People

            ggregory Gary D. Gregory
            izapolsky@gmail.com Ignat Zapolsky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: