You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Niall Pemberton (JIRA)" <ji...@apache.org> on 2010/09/10 16:30:36 UTC
[jira] Resolved: (BEANUTILS-377) Thread-safety and code-safety
issue in BeanMap
[ https://issues.apache.org/jira/browse/BEANUTILS-377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Niall Pemberton resolved BEANUTILS-377.
---------------------------------------
Resolution: Duplicate
This has already been dealt with in BEANUTILS-112 (1.8.0 release) as much as can be while retaining backwards compatibility:
http://svn.apache.org/viewvc?view=revision&revision=539965
> 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.