Implicitly boot delegated classes (i.e., java.*) should not be
shown as coming from the system bundle.
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@949589 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/Felix.java b/framework/src/main/java/org/apache/felix/framework/Felix.java
index a0327ba..328dc39 100644
--- a/framework/src/main/java/org/apache/felix/framework/Felix.java
+++ b/framework/src/main/java/org/apache/felix/framework/Felix.java
@@ -3045,13 +3045,19 @@
}
try
{
- return (m_extensionManager.getModule().getClassByDelegation(clazz.getName()) == clazz)
- ? this : null;
+ // For implicit boot delegation, we don't want those classes
+ // to be shown as coming from the system bundle.
+ if (!clazz.getName().startsWith("java."))
+ {
+ return (m_extensionManager.getModule().getClassByDelegation(clazz.getName()) == clazz)
+ ? this : null;
+ }
}
catch(ClassNotFoundException ex)
{
- return null;
+ // Ignore and return null.
}
+ return null;
}
/**