commit | 543545a953fcb118ef69f6813d45cd2ddb82ad34 | [log] [tgz] |
---|---|---|
author | Clement Escoffier <clement@apache.org> | Sat Sep 07 06:26:55 2013 +0000 |
committer | Clement Escoffier <clement@apache.org> | Sat Sep 07 06:26:55 2013 +0000 |
tree | 6408c4743891ae2ce44d11c509634a5df7b961b6 | |
parent | 86aed6f888513a3c51747e43a5db436acbac4cf9 [diff] |
Fix a potential concurrent modification exception git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1520733 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/handlers/providedservice/ProvidedService.java b/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/handlers/providedservice/ProvidedService.java index 642ec89..afca921 100644 --- a/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/handlers/providedservice/ProvidedService.java +++ b/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/handlers/providedservice/ProvidedService.java
@@ -457,7 +457,7 @@ * Get the list of properties attached to the service registration. * @return the properties attached to the provided service. */ - public Property[] getProperties() { + public synchronized Property[] getProperties() { return m_properties.values().toArray(new Property[m_properties.size()]); }