commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] Moved: (BEANUTILS-377) Thread-safety and code-safety issue in BeanMap
Date Wed, 21 Jul 2010 16:45:52 GMT

     [ https://issues.apache.org/jira/browse/BEANUTILS-377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Henri Yandell moved COLLECTIONS-326 to BEANUTILS-377:
-----------------------------------------------------

              Project: Commons BeanUtils  (was: Commons Collections)
                  Key: BEANUTILS-377  (was: COLLECTIONS-326)
    Affects Version/s:     (was: 3.2)
        Fix Version/s:     (was: 4.0-beta-1)
          Component/s: Bean-Collections
                           (was: Map)

> Thread-safety and code-safety issue in BeanMap
> ----------------------------------------------
>
>                 Key: BEANUTILS-377
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-377
>             Project: Commons BeanUtils
>          Issue Type: Bug
>          Components: Bean-Collections
>            Reporter: Sebb
>         Attachments: collections.pat
>
>
> 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