summaryrefslogtreecommitdiffstats
path: root/pf4j
diff options
context:
space:
mode:
authorDecebal Suiu <decebal.suiu@gmail.com>2013-02-20 10:47:14 +0200
committerDecebal Suiu <decebal.suiu@gmail.com>2013-02-20 10:47:14 +0200
commit16ff4a3173f3373aae5a267346f5873ad35d7c1e (patch)
tree4ce5ec40154d9edba23ee350c98e948da31c81e6 /pf4j
parenteb698770a6e82a566e2f8df3da86795a3e005175 (diff)
downloadpf4j-16ff4a3173f3373aae5a267346f5873ad35d7c1e.tar.gz
pf4j-16ff4a3173f3373aae5a267346f5873ad35d7c1e.zip
fix a issue with PluginClassLoader and javax. package
Diffstat (limited to 'pf4j')
-rw-r--r--pf4j/src/main/java/ro/fortsoft/pf4j/PluginClassLoader.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginClassLoader.java b/pf4j/src/main/java/ro/fortsoft/pf4j/PluginClassLoader.java
index 80832bc..60c79ca 100644
--- a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginClassLoader.java
+++ b/pf4j/src/main/java/ro/fortsoft/pf4j/PluginClassLoader.java
@@ -23,8 +23,8 @@ import java.util.List;
*/
public class PluginClassLoader extends URLClassLoader {
- private static final String JAVA_PACKAGE_PREFIX = "java.";
- private static final String JAVAX_PACKAGE_PREFIX = "javax.";
+// private static final String JAVA_PACKAGE_PREFIX = "java.";
+// private static final String JAVAX_PACKAGE_PREFIX = "javax.";
private static final String PLUGIN_PACKAGE_PREFIX = "ro.fortsoft.pf4j.";
private PluginManager pluginManager;
@@ -46,10 +46,13 @@ public class PluginClassLoader extends URLClassLoader {
public Class<?> loadClass(String className) throws ClassNotFoundException {
// System.out.println(">>>" + className);
+ /*
+ // javax.mail is not in JDK ?!
// first check whether it's a system class, delegate to the system loader
if (className.startsWith(JAVA_PACKAGE_PREFIX) || className.startsWith(JAVAX_PACKAGE_PREFIX)) {
return findSystemClass(className);
}
+ */
// second check whether it's already been loaded
Class<?> loadedClass = findLoadedClass(className);