Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2006-08-10 14:33:25 -0400
committerThomas Watson2006-08-10 14:33:25 -0400
commita9f15a3e45410c9660c982d17f6685405a5bb984 (patch)
tree102659e894b0c64b24de99fd0cd219e0b48d8c89
parent150b3d1d44d601f61394155919ff48a05943c68b (diff)
downloadrt.equinox.framework-a9f15a3e45410c9660c982d17f6685405a5bb984.tar.gz
rt.equinox.framework-a9f15a3e45410c9660c982d17f6685405a5bb984.tar.xz
rt.equinox.framework-a9f15a3e45410c9660c982d17f6685405a5bb984.zip
Bug 152474 ServiceReferenceImpl fails to find the PackageSource of a given service class
-rw-r--r--bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/ServiceReferenceImpl.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/ServiceReferenceImpl.java b/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/ServiceReferenceImpl.java
index 0c25ebdff..67875ff60 100644
--- a/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/ServiceReferenceImpl.java
+++ b/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/ServiceReferenceImpl.java
@@ -270,8 +270,9 @@ public class ServiceReferenceImpl implements ServiceReference, Comparable {
return producerSource;
// try the interfaces
Class[] interfaces = serviceClass.getInterfaces();
+ // note that getInterfaces never returns null
for (int i = 0; i < interfaces.length; i++) {
- producerSource = getPackageSource(serviceClass.getSuperclass(), pkgName);
+ producerSource = getPackageSource(interfaces[i], pkgName);
if (producerSource != null)
return producerSource;
}

Back to the top