Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Keith2013-07-05 09:40:51 -0400
committerMike Keith2013-07-05 09:40:51 -0400
commitcde202b8a82e7bd76f3dccc133f77a944d0757b5 (patch)
tree5c6365a07cfb4a2b7a97a28e473079d2c57da738
parentc48fef56391b6ff19c3ef0a6f46bf0510706ca50 (diff)
downloadorg.eclipse.gemini.jpa-cde202b8a82e7bd76f3dccc133f77a944d0757b5.tar.gz
org.eclipse.gemini.jpa-cde202b8a82e7bd76f3dccc133f77a944d0757b5.tar.xz
org.eclipse.gemini.jpa-cde202b8a82e7bd76f3dccc133f77a944d0757b5.zip
Fix for bug 412404 - classloader to throw CNFEHEADtrunk
-rw-r--r--org.eclipse.gemini.jpa/src/org/eclipse/gemini/jpa/classloader/BundleProxyClassLoader.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.gemini.jpa/src/org/eclipse/gemini/jpa/classloader/BundleProxyClassLoader.java b/org.eclipse.gemini.jpa/src/org/eclipse/gemini/jpa/classloader/BundleProxyClassLoader.java
index 95af563..81c3c6c 100644
--- a/org.eclipse.gemini.jpa/src/org/eclipse/gemini/jpa/classloader/BundleProxyClassLoader.java
+++ b/org.eclipse.gemini.jpa/src/org/eclipse/gemini/jpa/classloader/BundleProxyClassLoader.java
@@ -99,8 +99,9 @@ public class BundleProxyClassLoader extends ClassLoader {
// may result in attempt to resolve bundle which we
// don't want as a side effect.
debugClassLoader("Bundle has no classloader so loadClass(", name,
- ") is returning null");
- return null;
+ ") is throwing CNFE");
+ // Bug 412404 - throw CNFE instead of returning null
+ throw new ClassNotFoundException(name);
} else {
return bundle.loadClass(name);
}

Back to the top