Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-494

CharSet sub-classes cannot be made thread-safe

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.5
    • lang.*
    • None

    Description

      AFAICT, CharSet sub-classes cannot be made thread-safe.

      This is because the HashMap and HashSet collections are not thread-safe.

      If a sub-class updates COMMON, there is no guarantee that getInstance() will see the update.

      In the case of the instance variable "set", the sub-class could override all the read/write methods to provide thread-safety.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: