FELIX-1826 The m_componentInstances map contains entries where the key is
the value (and not the ComponentInstance object), which may lead to an
ArrayStoreException when calling getComponentManagers

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@831291 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scr/src/main/java/org/apache/felix/scr/impl/manager/ComponentFactoryImpl.java b/scr/src/main/java/org/apache/felix/scr/impl/manager/ComponentFactoryImpl.java
index 682be7f..649a4f2 100644
--- a/scr/src/main/java/org/apache/felix/scr/impl/manager/ComponentFactoryImpl.java
+++ b/scr/src/main/java/org/apache/felix/scr/impl/manager/ComponentFactoryImpl.java
@@ -118,7 +118,7 @@
             throw new ComponentException( "Failed activating component" );
         }
 
-        m_componentInstances.put( cm, instance );
+        m_componentInstances.put( cm, cm );
         return instance;
     }