activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [1/2] activemq-artemis git commit: ARTEMIS-289 potential ConcurrentModificationException
Date Thu, 29 Oct 2015 20:21:58 GMT
Repository: activemq-artemis
Updated Branches:
  refs/heads/master 8aaed7568 -> 73f8fbf4c


ARTEMIS-289 potential ConcurrentModificationException


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/43b421a5
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/43b421a5
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/43b421a5

Branch: refs/heads/master
Commit: 43b421a5884280900f6bae740c07a1eee8736f1e
Parents: 8aaed75
Author: jbertram <jbertram@apache.org>
Authored: Thu Oct 29 13:41:08 2015 -0500
Committer: jbertram <jbertram@apache.org>
Committed: Thu Oct 29 13:41:29 2015 -0500

----------------------------------------------------------------------
 .../org/apache/activemq/artemis/core/server/impl/QueueImpl.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/43b421a5/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/QueueImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/QueueImpl.java
b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/QueueImpl.java
index 95a7ba6..ee60a14 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/QueueImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/QueueImpl.java
@@ -791,7 +791,7 @@ public class QueueImpl implements Queue {
    }
 
    public synchronized Set<Consumer> getConsumers() {
-      return consumerSet;
+      return new HashSet<Consumer>(consumerSet);
    }
 
    public boolean hasMatchingConsumer(final ServerMessage message) {


Mime
View raw message