incubator-aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mnutt...@apache.org
Subject svn commit: r1049914 - /incubator/aries/trunk/jndi/jndi-url/src/main/java/org/apache/aries/jndi/url/BlueprintURLContext.java
Date Thu, 16 Dec 2010 10:58:52 GMT
Author: mnuttall
Date: Thu Dec 16 10:58:52 2010
New Revision: 1049914

URL: http://svn.apache.org/viewvc?rev=1049914&view=rev
Log:
ARIES-512: The Enterprise spec is vague on how to handle values of blueprint.graceperiod that
are not 'true' or 'false'. Since 'false' can result in our blocking for unlimited periods,
take section 121.3.2.1_6 as controlling, and so take everything other than .equalsIgnoreCase('false')
as 'true'. 

Modified:
    incubator/aries/trunk/jndi/jndi-url/src/main/java/org/apache/aries/jndi/url/BlueprintURLContext.java

Modified: incubator/aries/trunk/jndi/jndi-url/src/main/java/org/apache/aries/jndi/url/BlueprintURLContext.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/jndi/jndi-url/src/main/java/org/apache/aries/jndi/url/BlueprintURLContext.java?rev=1049914&r1=1049913&r2=1049914&view=diff
==============================================================================
--- incubator/aries/trunk/jndi/jndi-url/src/main/java/org/apache/aries/jndi/url/BlueprintURLContext.java
(original)
+++ incubator/aries/trunk/jndi/jndi-url/src/main/java/org/apache/aries/jndi/url/BlueprintURLContext.java
Thu Dec 16 10:58:52 2010
@@ -470,7 +470,7 @@ public class BlueprintURLContext impleme
     if (m.matches()) { 
       String gracePeriod = m.group(1);
       if (gracePeriod != null) { 
-        gracePeriodSet = gracePeriod.equalsIgnoreCase("true");
+        gracePeriodSet = !gracePeriod.equalsIgnoreCase("false"); // See OSGi Enterprise spec
4.2 section 121.3.2.1 step 6
       }
     }
     if (!gracePeriodSet) { 



Mime
View raw message