Fixed a mistake in the order in which signatures were searched.
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@554768 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 4973363..b661810 100644
--- a/dependencymanager/src/main/java/org/apache/felix/dependencymanager/ServiceDependency.java
+++ b/dependencymanager/src/main/java/org/apache/felix/dependencymanager/ServiceDependency.java
@@ -254,7 +254,7 @@
boolean done = false;
while (!done && currentClazz != null) {
done = invokeMethod(instance, currentClazz, methodName,
- new Class[][] {{ServiceReference.class, m_trackedServiceName}, {ServiceReference.class, Object.class}, {ServiceReference.class}, {Object.class}, {m_trackedServiceName}, {}},
+ new Class[][] {{ServiceReference.class, m_trackedServiceName}, {ServiceReference.class, Object.class}, {ServiceReference.class}, {m_trackedServiceName}, {Object.class}, {}},
new Object[][] {{reference, service}, {reference, service}, {reference}, {service}, {service}, {}},
false);
if (!done) {