You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2025/01/07 14:07:01 UTC
[jira] [Updated] (BEANUTILS-440) MethodUtils.CACHE_METHODS is not accessed in a thread-safe way
[ https://issues.apache.org/jira/browse/BEANUTILS-440?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary D. Gregory updated BEANUTILS-440:
--------------------------------------
Fix Version/s: 2.0.0-M2
(was: 2.0.0-M1)
> MethodUtils.CACHE_METHODS is not accessed in a thread-safe way
> --------------------------------------------------------------
>
> Key: BEANUTILS-440
> URL: https://issues.apache.org/jira/browse/BEANUTILS-440
> Project: Commons BeanUtils
> Issue Type: Bug
> Reporter: Sebb
> Priority: Major
> Fix For: 2.0.0-M2
>
> Attachments: BEANUTILS-440.patch
>
>
> MethodUtils.CACHE_METHODS is not accessed in a thread-safe way.
> The field is a mutable static field, but is not volatile (nor Atomic) and only write accesses are synchronised.
> If one thread writes the field, other reader threads may not see the updates immediately (or ever).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)