You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by cl...@apache.org on 2013/02/26 11:40:24 UTC

svn commit: r1450117 - /felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/handlers/providedservice/strategy/ErrorPrintingServiceFactoryProxy.java

Author: clement
Date: Tue Feb 26 10:40:24 2013
New Revision: 1450117

URL: http://svn.apache.org/r1450117
Log:
Fix FELIX-3920

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

Modified: felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/handlers/providedservice/strategy/ErrorPrintingServiceFactoryProxy.java
URL: http://svn.apache.org/viewvc/felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/handlers/providedservice/strategy/ErrorPrintingServiceFactoryProxy.java?rev=1450117&r1=1450116&r2=1450117&view=diff
==============================================================================
--- felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/handlers/providedservice/strategy/ErrorPrintingServiceFactoryProxy.java (original)
+++ felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/handlers/providedservice/strategy/ErrorPrintingServiceFactoryProxy.java Tue Feb 26 10:40:24 2013
@@ -94,6 +94,11 @@ public class ErrorPrintingServiceFactory
             return null;
         }
 
+        // KF is calling hashCode, we return the proxy hashCode.
+        if (method.getName().equals("hashCode")) {
+            return this.hashCode();
+        }
+
         // All other methods are rejected
         throw new UnsupportedOperationException("This service requires an advanced creation policy. "
                         + "Before calling the service, call the IPOJOServiceFactory.getService(ComponentInstance) "