felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clem...@apache.org
Subject svn commit: r749228 - /felix/trunk/ipojo/api/src/main/java/org/apache/felix/ipojo/api/PrimitiveComponentType.java
Date Mon, 02 Mar 2009 08:23:02 GMT
Author: clement
Date: Mon Mar  2 08:23:01 2009
New Revision: 749228

URL: http://svn.apache.org/viewvc?rev=749228&view=rev
Log:
Fix issue Felix-925. 
Already manipulated classes are loaded with the regular bundle classloader instead of the
iPOJO Factory classloader (used when the manipulated class exists only as a byte[]).

Modified:
    felix/trunk/ipojo/api/src/main/java/org/apache/felix/ipojo/api/PrimitiveComponentType.java

Modified: felix/trunk/ipojo/api/src/main/java/org/apache/felix/ipojo/api/PrimitiveComponentType.java
URL: http://svn.apache.org/viewvc/felix/trunk/ipojo/api/src/main/java/org/apache/felix/ipojo/api/PrimitiveComponentType.java?rev=749228&r1=749227&r2=749228&view=diff
==============================================================================
--- felix/trunk/ipojo/api/src/main/java/org/apache/felix/ipojo/api/PrimitiveComponentType.java
(original)
+++ felix/trunk/ipojo/api/src/main/java/org/apache/felix/ipojo/api/PrimitiveComponentType.java
Mon Mar  2 08:23:01 2009
@@ -369,7 +369,11 @@
         Element meta = m_metadata;
         meta.addElement(m_manipulation);
         try {
-            m_factory = new ComponentFactory(m_context, clazz, meta);
+            if (clazz.length == 0) { // Already manipulated
+                m_factory = new ComponentFactory(m_context, meta);
+            } else {
+                m_factory = new ComponentFactory(m_context, clazz, meta);
+            }
             m_factory.start();
         } catch (ConfigurationException e) {
             throw new IllegalStateException("An exception occurs during factory initialization
: " + e.getMessage());



Mime
View raw message