felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickh...@apache.org
Subject svn commit: r779742 - /felix/trunk/framework/src/main/java/org/apache/felix/framework/ServiceRegistry.java
Date Thu, 28 May 2009 19:49:33 GMT
Author: rickhall
Date: Thu May 28 19:49:33 2009
New Revision: 779742

URL: http://svn.apache.org/viewvc?rev=779742&view=rev
Log:
BundleContext.ungetService() should only return false if the service usage
count was zero when the call was invoked. (FELIX-1187)

Modified:
    felix/trunk/framework/src/main/java/org/apache/felix/framework/ServiceRegistry.java

Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/ServiceRegistry.java
URL: http://svn.apache.org/viewvc/felix/trunk/framework/src/main/java/org/apache/felix/framework/ServiceRegistry.java?rev=779742&r1=779741&r2=779742&view=diff
==============================================================================
--- felix/trunk/framework/src/main/java/org/apache/felix/framework/ServiceRegistry.java (original)
+++ felix/trunk/framework/src/main/java/org/apache/felix/framework/ServiceRegistry.java Thu
May 28 19:49:33 2009
@@ -427,7 +427,7 @@
             }
         }
 
-        return (usage.m_count > 0);
+        return true;
     }
 
 
@@ -874,4 +874,4 @@
         public ServiceReference m_ref = null;
         public Object m_svcObj = null;
     }
-}
\ No newline at end of file
+}



Mime
View raw message