check interfaces of superclasses as well
@@ -38,13 +38,13 @@ private static boolean isBundleReference(final Class<?> clazz) {
if (c.getName().equals("org.osgi.framework.BundleReference")) {
return true;
}
- c = c.getSuperclass();
- }
- for (Class<?> ifc : clazz.getInterfaces()) {
+ for (Class<?> ifc : c.getInterfaces()) {
if (isBundleReference(ifc)) {
return true;
}
}
+ c = c.getSuperclass();
+ }
return false;
}
