System bundle should throw CNFE when it doesn't have the class. (FELIX-953)


git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@747398 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/ExtensionManager.java b/framework/src/main/java/org/apache/felix/framework/ExtensionManager.java
index 934fd30..d00884c 100644
--- a/framework/src/main/java/org/apache/felix/framework/ExtensionManager.java
+++ b/framework/src/main/java/org/apache/felix/framework/ExtensionManager.java
@@ -646,7 +646,7 @@
         {
             if (!m_exportNames.contains(Util.getClassPackage(name)))
             {
-                return null;
+                throw new ClassNotFoundException(name);
             }
 
             return getClass().getClassLoader().loadClass(name);