commit | df2d2620a0572e3c272ad284e041536cc1a5542f | [log] [tgz] |
---|---|---|
author | Felix Meschberger <fmeschbe@apache.org> | Fri Oct 30 13:32:14 2009 +0000 |
committer | Felix Meschberger <fmeschbe@apache.org> | Fri Oct 30 13:32:14 2009 +0000 |
tree | 28cbb0690ca6a1583e8928c91914ea64438719f3 | |
parent | 4790dd317f348be61370c6c2ca3cf5999cf86d50 [diff] |
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; }