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: (COLLECTIONS-326) Thread-safety and code-safety issue in BeanMap
Date Wed, 20 May 2009 12:17:45 GMT
Thread-safety and code-safety issue in BeanMap
----------------------------------------------

                 Key: COLLECTIONS-326
                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-326
             Project: Commons Collections
          Issue Type: Bug
          Components: Map
    Affects Versions: 3.2
            Reporter: Sebb


BeanMap declares the following static field:

{code}
public static HashMap defaultTransformers = new HashMap();
{code}

This is unsafe, as any code can change the map. The map is not currently used outside the
class; it should be made private and final, as it is not intended to be used except within
the class.

-- 
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