Uploaded image for project: 'Commons JCS'
  1. Commons JCS
  2. JCS-116

CompositeCacheManager is thread-hostile

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • jcs-2.0-beta-2
    • None
    • None

    Description

      The CompositeCacheManager class is a singleton. However it is not immutable, so is inherently thread-hostile.

      The class does take some steps to prevent reconfiguration, but it still allows changes to variables such as defaultCacheAttr that affect instance methods such as getCache(String)

      This makes it very easy to accidentally affect other threads.

      Attachments

        Activity

          People

            tv Thomas Vandahl
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: