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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: