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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: