Changed the exception handling after Friday's refactoring. No such method exceptions should be ignored here.
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@930730 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/ServiceImpl.java b/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/ServiceImpl.java
index f63b556..cd7335e 100644
--- a/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/ServiceImpl.java
+++ b/dependencymanager/core/src/main/java/org/apache/felix/dm/impl/ServiceImpl.java
@@ -591,8 +591,12 @@
new Class[][] {{ Object.class, DependencyManager.class, Service.class }, { DependencyManager.class, Service.class }, { Object.class }, {}},
new Object[][] {{ m_serviceInstance, m_manager, this }, { m_manager, this }, { m_serviceInstance }, {}});
}
+ catch (NoSuchMethodException e) {
+ // we ignore the fact that the method was not found
+ }
catch (Exception e) {
- m_logger.log(Logger.LOG_ERROR, "Error trying to invoke method named " + name + ".", e);
+ // but any other exception means that the method was invoked but somehow failed
+ m_logger.log(Logger.LOG_WARNING, "Error trying to invoke method named " + name + ".", e);
}
}
}