Author: fmeschbe
Date: Tue Jan 26 12:58:01 2010
New Revision: 903203
URL: http://svn.apache.org/viewvc?rev=903203&view=rev
Log:
FELIX-2006 Catch Throwable instead of Exception to properly handle
instantiation failure if loading the implementation class fails.
Modified:
felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/manager/ImmediateComponentManager.java
Modified:
felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/manager/ImmediateComponentManager.java
URL:
http://svn.apache.org/viewvc/felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/manager/ImmediateComponentManager.java?rev=903203&r1=903202&r2=903203&view=diff
==============================================================================
---
felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/manager/ImmediateComponentManager.java
(original)
+++
felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/manager/ImmediateComponentManager.java
Tue Jan 26 12:58:01 2010
@@ -182,10 +182,10 @@
// may be created by the SCR with the newInstance method on Class
implementationObject = implementationObjectClass.newInstance();
}
- catch ( Exception ex )
+ catch ( Throwable t )
{
// failed to instantiate, return null
- log( LogService.LOG_ERROR, "Error during instantiation of the
implementation object", ex );
+ log( LogService.LOG_ERROR, "Error during instantiation of the
implementation object", t );
return null;
}