felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pde...@apache.org
Subject svn commit: r1572309 - /felix/sandbox/pderop/dependencymanager-prototype/dm/src/dm/impl/ComponentImpl.java
Date Wed, 26 Feb 2014 22:33:36 GMT
Author: pderop
Date: Wed Feb 26 22:33:35 2014
New Revision: 1572309

URL: http://svn.apache.org/r1572309
Log:
Log any errors thrown when invoking component's lifecycle callbacks, except when the callback
does not exist.

Modified:
    felix/sandbox/pderop/dependencymanager-prototype/dm/src/dm/impl/ComponentImpl.java

Modified: felix/sandbox/pderop/dependencymanager-prototype/dm/src/dm/impl/ComponentImpl.java
URL: http://svn.apache.org/viewvc/felix/sandbox/pderop/dependencymanager-prototype/dm/src/dm/impl/ComponentImpl.java?rev=1572309&r1=1572308&r2=1572309&view=diff
==============================================================================
--- felix/sandbox/pderop/dependencymanager-prototype/dm/src/dm/impl/ComponentImpl.java (original)
+++ felix/sandbox/pderop/dependencymanager-prototype/dm/src/dm/impl/ComponentImpl.java Wed
Feb 26 22:33:35 2014
@@ -341,10 +341,10 @@ public class ComponentImpl implements Co
             }
             catch (InvocationTargetException e) {
                 // the method itself threw an exception, log that
-                //m_logger.log(Logger.LOG_ERROR, "Invocation of '" + methodName + "' failed.",
e.getCause());
+                m_logger.log(Logger.LOG_ERROR, "Invocation of '" + methodName + "' failed.",
e.getCause());
             }
-            catch (Exception e) {
-                //m_logger.log(Logger.LOG_ERROR, "Could not invoke '" + methodName + "'.",
e);
+            catch (Throwable e) {
+                m_logger.log(Logger.LOG_ERROR, "Could not invoke '" + methodName + "'.",
e);
             }
         }
     }



Mime
View raw message