commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] Created: (LANG-494) CharSet sub-classes cannot be made thread-safe
Date Sun, 15 Mar 2009 15:26:50 GMT
CharSet sub-classes cannot be made thread-safe
----------------------------------------------

                 Key: LANG-494
                 URL: https://issues.apache.org/jira/browse/LANG-494
             Project: Commons Lang
          Issue Type: Bug
            Reporter: Sebb


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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message