You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by or...@apache.org on 2019/08/11 14:16:12 UTC
[qpid-broker-j] branch master updated: QPID-8289: [Broker-J] Broker
startup can fail due to ConcurrentModificationException
This is an automated email from the ASF dual-hosted git repository.
orudyy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-broker-j.git
The following commit(s) were added to refs/heads/master by this push:
new 4abddac QPID-8289: [Broker-J] Broker startup can fail due to ConcurrentModificationException
4abddac is described below
commit 4abddaccaf9be7095324cfa3c48de13882b2ec2e
Author: overmeulen <ov...@murex.com>
AuthorDate: Thu Aug 1 16:22:49 2019 +0200
QPID-8289: [Broker-J] Broker startup can fail due to ConcurrentModificationException
This closes #33
---
.../java/org/apache/qpid/server/model/AbstractConfiguredObject.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/broker-core/src/main/java/org/apache/qpid/server/model/AbstractConfiguredObject.java b/broker-core/src/main/java/org/apache/qpid/server/model/AbstractConfiguredObject.java
index f7b77f1..267356c 100644
--- a/broker-core/src/main/java/org/apache/qpid/server/model/AbstractConfiguredObject.java
+++ b/broker-core/src/main/java/org/apache/qpid/server/model/AbstractConfiguredObject.java
@@ -3505,7 +3505,8 @@ public abstract class AbstractConfiguredObject<X extends ConfiguredObject<X>> im
if(!excludeSystem)
{
inheritedContext.putAll(System.getenv());
- inheritedContext.putAll((Map) System.getProperties());
+ //clone is synchronized and will avoid ConcurrentModificationException
+ inheritedContext.putAll((Map) System.getProperties().clone());
}
generateInheritedContext(getModel(), this, inheritedContext);
return Collections.unmodifiableSet(inheritedContext.keySet());
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org