aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject svn commit: r1351290 - /aries/trunk/spi-fly/spi-fly-core/src/main/java/org/apache/aries/spifly/ProviderBundleTrackerCustomizer.java
Date Mon, 18 Jun 2012 10:58:19 GMT
Author: davidb
Date: Mon Jun 18 10:58:18 2012
New Revision: 1351290

URL: http://svn.apache.org/viewvc?rev=1351290&view=rev
Log:
[SPI-Fly] Prevent registration of service properties starting with a dot '.'.
This fixes an OSGi TCK failure.

Modified:
    aries/trunk/spi-fly/spi-fly-core/src/main/java/org/apache/aries/spifly/ProviderBundleTrackerCustomizer.java

Modified: aries/trunk/spi-fly/spi-fly-core/src/main/java/org/apache/aries/spifly/ProviderBundleTrackerCustomizer.java
URL: http://svn.apache.org/viewvc/aries/trunk/spi-fly/spi-fly-core/src/main/java/org/apache/aries/spifly/ProviderBundleTrackerCustomizer.java?rev=1351290&r1=1351289&r2=1351290&view=diff
==============================================================================
--- aries/trunk/spi-fly/spi-fly-core/src/main/java/org/apache/aries/spifly/ProviderBundleTrackerCustomizer.java
(original)
+++ aries/trunk/spi-fly/spi-fly-core/src/main/java/org/apache/aries/spifly/ProviderBundleTrackerCustomizer.java
Mon Jun 18 10:58:18 2012
@@ -238,7 +238,8 @@ public class ProviderBundleTrackerCustom
                 if (SpiFlyConstants.SERVICELOADER_CAPABILITY_NAMESPACE.equals(entry.getKey()))
                     continue;
 
-                properties.put(entry.getKey(), entry.getValue());
+                if (!entry.getKey().startsWith("."))
+                    properties.put(entry.getKey(), entry.getValue());
             }
         }
 



Mime
View raw message