commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <>
Subject [jira] Closed: (LANG-494) CharSet sub-classes cannot be made thread-safe
Date Sat, 09 Jan 2010 10:07:54 GMT


Henri Yandell closed LANG-494.

    Resolution: Fixed

svn ci -m "Synchronizing the COMMON Map so that getInstance doesn't miss a put from a subclass
in another thread. LANG-494"
Sending        src/main/java/org/apache/commons/lang3/
Transmitting file data .
Committed revision 897408.

> CharSet sub-classes cannot be made thread-safe
> ----------------------------------------------
>                 Key: LANG-494
>                 URL:
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>            Reporter: Sebb
>             Fix For: 3.0
> 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
> 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.

View raw message