[
https://issues.apache.org/jira/browse/COLLECTIONS-326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hasan Diwan updated COLLECTIONS-326:
------------------------------------
Attachment: collections.pat
Des what is indicated in the issue -- declares defaultTransformers as private
and static.
> 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
> Fix For: 3.3
>
> 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.