You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henri Yandell (JIRA)" <ji...@apache.org> on 2010/07/21 18:45:52 UTC
[jira] Commented: (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:comment-tabpanel&focusedCommentId=12890772#action_12890772 ]
Henri Yandell commented on BEANUTILS-377:
-----------------------------------------
Moving over to BeanUtils, BeanMap lives there.
> 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.