Added support for callback methods with the (ServiceReference, ActualInterfaceType) signature.
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@554734 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/dependencymanager/src/main/java/org/apache/felix/dependencymanager/ServiceDependency.java b/dependencymanager/src/main/java/org/apache/felix/dependencymanager/ServiceDependency.java
index 5054e3e..4973363 100644
--- a/dependencymanager/src/main/java/org/apache/felix/dependencymanager/ServiceDependency.java
+++ b/dependencymanager/src/main/java/org/apache/felix/dependencymanager/ServiceDependency.java
@@ -254,8 +254,8 @@
boolean done = false;
while (!done && currentClazz != null) {
done = invokeMethod(instance, currentClazz, methodName,
- new Class[][] {{ServiceReference.class, Object.class}, {ServiceReference.class}, {Object.class}, {m_trackedServiceName}, {}},
- new Object[][] {{reference, service}, {reference}, {service}, {service}, {}},
+ new Class[][] {{ServiceReference.class, m_trackedServiceName}, {ServiceReference.class, Object.class}, {ServiceReference.class}, {Object.class}, {m_trackedServiceName}, {}},
+ new Object[][] {{reference, service}, {reference, service}, {reference}, {service}, {service}, {}},
false);
if (!done) {
currentClazz = currentClazz.getSuperclass();