You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by jg...@apache.org on 2015/08/06 12:23:16 UTC
tomee git commit: TOMEE-1622 - TomEE SystemInstance unsafely iterates
over the System.getProperties()
Repository: tomee
Updated Branches:
refs/heads/tomee-1.7.x 520adf5d0 -> 476461a07
TOMEE-1622 - TomEE SystemInstance unsafely iterates over the System.getProperties()
Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/476461a0
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/476461a0
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/476461a0
Branch: refs/heads/tomee-1.7.x
Commit: 476461a07868339f1b0aa8a6e240a63e3602447b
Parents: 520adf5
Author: Kasun Gajasinghe <ka...@wso2.com>
Authored: Thu Aug 6 14:22:33 2015 +0530
Committer: Kasun Gajasinghe <ka...@wso2.com>
Committed: Thu Aug 6 14:22:33 2015 +0530
----------------------------------------------------------------------
.../src/main/java/org/apache/openejb/loader/SystemInstance.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tomee/blob/476461a0/container/openejb-loader/src/main/java/org/apache/openejb/loader/SystemInstance.java
----------------------------------------------------------------------
diff --git a/container/openejb-loader/src/main/java/org/apache/openejb/loader/SystemInstance.java b/container/openejb-loader/src/main/java/org/apache/openejb/loader/SystemInstance.java
index 92fcee8..cb638c5 100644
--- a/container/openejb-loader/src/main/java/org/apache/openejb/loader/SystemInstance.java
+++ b/container/openejb-loader/src/main/java/org/apache/openejb/loader/SystemInstance.java
@@ -68,7 +68,8 @@ public final class SystemInstance {
this.components = new HashMap<Class, Object>();
// import JVM system property config (if a resource/container/... is set through this way)
- for (final Map.Entry<Object, Object> e : System.getProperties().entrySet()) {
+ Properties clonedSystemProperties = (Properties) System.getProperties().clone();
+ for (final Map.Entry<Object, Object> e : clonedSystemProperties.entrySet()) {
final String key = e.getKey().toString();
if (key.startsWith("sun.")) {
continue;