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

Generic[Keyed]ObjectPool.startEvictor() is overrideable yet is called from the ctor

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Labels:
      None

      Description

      The method Generic[Keyed]ObjectPool.startEvictor() is overrideable yet is called from the ctor - this can cause problems with subclasses, as the class may be only partially constructed when the method is invoked.

      Either the method should be final, or private, or the code could be extracted into a private method called by the ctor.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: