Fix FELIX-3920

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1450117 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/handlers/providedservice/strategy/ErrorPrintingServiceFactoryProxy.java b/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/handlers/providedservice/strategy/ErrorPrintingServiceFactoryProxy.java
index ec51005..5886236 100644
--- a/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/handlers/providedservice/strategy/ErrorPrintingServiceFactoryProxy.java
+++ b/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/handlers/providedservice/strategy/ErrorPrintingServiceFactoryProxy.java
@@ -94,6 +94,11 @@
             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) "