Filter helma.doc package from main classloader. This is because helma.doc actually

depends on FESI, i.e. if it is loaded via the main classloader, so will some classes
in FESI, and we want to prevent that.
This commit is contained in:
hns 2002-11-26 14:59:56 +00:00
parent 94e9a8efab
commit 30d593119b

View file

@ -29,7 +29,9 @@ public class FilteredClassLoader extends URLClassLoader {
* Mask classes that implement the scripting engine(s) contained in helma.jar
*/
protected Class findClass (String name) throws ClassNotFoundException {
if (name != null && (name.startsWith ("helma.scripting.fesi") || name.startsWith ("FESI")))
if (name != null && (name.startsWith ("helma.scripting.fesi") ||
name.startsWith ("helma.doc") ||
name.startsWith ("FESI")))
throw new ClassNotFoundException (name);
return super.findClass (name);
}