You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2019/12/03 13:36:00 UTC

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

    [ https://issues.apache.org/jira/browse/ARIES-1887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16986899#comment-16986899 ] 

ASF subversion and git services commented on ARIES-1887:
--------------------------------------------------------

Commit fd261f3c4cf72a262187a5e33c07c14e9aaed558 in aries's branch refs/heads/trunk from Christian Schneider
[ https://gitbox.apache.org/repos/asf?p=aries.git;h=fd261f3 ]

Merge pull request #104 from nicolas-dutertry/ARIES-1887

[ARIES-1887] ComponentTxData in transaction-blueprint was not thread …

> 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
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: transaction-blueprint-2.3.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> 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
(v8.3.4#803005)