felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clem...@apache.org
Subject svn commit: r1620272 - /felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/handlers/providedservice/ProvidedServiceHandler.java
Date Mon, 25 Aug 2014 08:40:46 GMT
Author: clement
Date: Mon Aug 25 08:40:45 2014
New Revision: 1620272

URL: http://svn.apache.org/r1620272
Log:
Fix FELIX-4565

Modified:
    felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/handlers/providedservice/ProvidedServiceHandler.java

Modified: felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/handlers/providedservice/ProvidedServiceHandler.java
URL: http://svn.apache.org/viewvc/felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/handlers/providedservice/ProvidedServiceHandler.java?rev=1620272&r1=1620271&r2=1620272&view=diff
==============================================================================
--- felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/handlers/providedservice/ProvidedServiceHandler.java
(original)
+++ felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/handlers/providedservice/ProvidedServiceHandler.java
Mon Aug 25 08:40:45 2014
@@ -412,8 +412,9 @@ public class ProvidedServiceHandler exte
         // Verify that the field name correspond to a dependency
         for (ProvidedService svc : m_providedServices) {
             boolean update = false;
-            for (int j = 0; j < svc.getProperties().length; j++) {
-                Property prop = svc.getProperties()[j];
+            // Retrieve a copy of the properties.
+            final Property[] properties = svc.getProperties();
+            for (Property prop : properties) {
                 if (fieldName.equals(prop.getField()) && !prop.getValue().equals(value))
{
                     // it is the associated property
                     prop.setValue(value);



Mime
View raw message