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

BaseProxyHandler.pooledObject is not volatile or synch, so is not guaranteed to be safely published.

    XMLWordPrintableJSON

Details

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

    Description

      BaseProxyHandler.pooledObject is not volatile or synch, so is not guaranteed to be safely published.

      The class Javadoc does not state whether it is intended to be thread-safe or not, but I would expect the class might be called from multiple threads.

      One solution would be to make the field volatile.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: