[jira] [Created] (ARIES-1887) org.apache.aries.transaction.blueprint is not thread safe

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (ARIES-1887) org.apache.aries.transaction.blueprint is not thread safe

JIRA jira@apache.org
Nicolas Dutertry created ARIES-1887:
---------------------------------------

             Summary: org.apache.aries.transaction.blueprint is not thread safe
                 Key: ARIES-1887
                 URL: https://issues.apache.org/jira/browse/ARIES-1887
             Project: Aries
          Issue Type: Bug
          Components: Transaction
    Affects Versions: transaction-blueprint-2.2.0
            Reporter: Nicolas Dutertry


The class ComponentTxData in org.apache.aries.transaction.blueprint uses a HashMap
{code:java}
private Map<Method, TransactionalAnnotationAttributes> txMap = new HashMap<Method, TransactionalAnnotationAttributes>();{code}
This is very dangerous because txMap can be modified and accessed after initialization.

It should be replaced with a ConcurrentHashMap.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)