Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.6-beta-2
-
None
-
Patch
Description
GroovyScriptEngine doesn't inherit CompilerConfiguration from parent classloader
CompilerConfiguration cc = new CompilerConfiguration();
cc.setScriptBaseClass(ScriptBase.class.getName())
GroovyClassLoader cl= new GroovyClassLoader(this.getClassLoader(), cc, false)
GroovyScriptEngine engine = new GroovyScriptEngine("file://.", cl)
def script = engine.createScript("test.groovy", new Binding())
assertTrue(script instanceof ScriptBase.)