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

ASF subversion and git services commented on QPID-6171:
-------------------------------------------------------

Commit 1633344 from [~godfrer] in branch 'qpid/trunk'
[ https://svn.apache.org/r1633344 ]

QPID-6171 : make Connection.getChannels() return a data structure that can be 
safely iterated over

> [Java Common] Connection.getChannels() leaks a potentially thread-unsafe data 
> structure
> ---------------------------------------------------------------------------------------
>
>                 Key: QPID-6171
>                 URL: https://issues.apache.org/jira/browse/QPID-6171
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Common
>            Reporter: Rob Godfrey
>            Assignee: Rob Godfrey
>             Fix For: 0.31
>
>
> the collection returned by getChannels() may be modified by other threads, 
> leading to unsafe iteration throwing ConcurrentModificationException.
> The returned object should instead be a copy of the data and the underlying 
> map should use a thread safe implementation to allow for the safe copying of 
> the values() collection while another thread may be modifying the map.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to