FELIX-3843 ClassCastException when listing service properties of a non-ComponentFactory Factory service
* Remove un-needed cast to ComponentFactory
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1430762 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/architecture/ComponentTypeDescription.java b/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/architecture/ComponentTypeDescription.java
index 04b8683..2a7dc4a 100644
--- a/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/architecture/ComponentTypeDescription.java
+++ b/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/architecture/ComponentTypeDescription.java
@@ -23,7 +23,6 @@
import java.util.Hashtable;
import java.util.Properties;
-import org.apache.felix.ipojo.ComponentFactory;
import org.apache.felix.ipojo.Factory;
import org.apache.felix.ipojo.IPojoFactory;
import org.apache.felix.ipojo.metadata.Attribute;
@@ -255,7 +254,7 @@
desc.addAttribute(new Attribute("name", m_factory.getName()));
desc.addAttribute(
new Attribute("bundle",
- Long.toString(((ComponentFactory) m_factory).getBundleContext().getBundle().getBundleId())));
+ Long.toString(m_factory.getBundleContext().getBundle().getBundleId())));
String state = "valid";
if (m_factory.getState() == Factory.INVALID) {