You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Rob Godfrey (JIRA)" <ji...@apache.org> on 2014/10/21 13:33:33 UTC

[jira] [Created] (QPID-6171) [Java Common] Connection.getChannels() leaks a potentially thread-unsafe data structure

Rob Godfrey created QPID-6171:
---------------------------------

             Summary: [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-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org