Skip to content

Commit

Permalink
LOGBACK-832 - set parent classloader to avoid janino classes not bein…
Browse files Browse the repository at this point in the history
…g found in some environments (axis2, GWT, etc). Fix author was Arno Unkrig, see http://jira.codehaus.org/browse/JANINO-159
  • Loading branch information
diroussel committed Jun 6, 2013
1 parent 685f692 commit 0bea26e
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 0bea26e

Please sign in to comment.