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:
parent
94e9a8efab
commit
30d593119b
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue