Skip to content

Commit

Permalink
Merge pull request #131 from diroussel/janino-fix
Browse files Browse the repository at this point in the history
LOGBACK-832 - set parent classloader to avoid janino classes not being found
  • Loading branch information
tony19 committed Sep 19, 2013
2 parents 409ba25 + 0bea26e commit 54b0aa8
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -47,6 +47,7 @@ public Condition build(String script) throws IllegalAccessException,
ClassBodyEvaluator cbe = new ClassBodyEvaluator();
cbe.setImplementedInterfaces(new Class[]{Condition.class});
cbe.setExtendedClass(PropertyWrapperForScripts.class);
cbe.setParentClassLoader(ClassBodyEvaluator.class.getClassLoader());
cbe.cook(SCRIPT_PREFIX + script + SCRIPT_SUFFIX);

Class<?> clazz = cbe.getClazz();
Expand Down

0 comments on commit 54b0aa8

Please sign in to comment.