Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.6-beta-2
-
Fix Version/s: 1.6-rc-2, 1.5.8, 1.7-beta-1
-
Component/s: groovy-jdk
-
Labels:None
-
Testcase included:yes
-
Patch Submitted:Yes
-
Number of attachments :
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.)
Activity
Alexey Utkin
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Attachment | GroovyScriptEngine.patch.2 [ 39401 ] |
Guillaume Laforge
made changes -
| Fix Version/s | 1.5.8 [ 14630 ] | |
| Fix Version/s | 1.7-beta-1 [ 14014 ] | |
| Fix Version/s | 1.6 [ 13832 ] |
Guillaume Laforge
made changes -
| Assignee | Guillaume Laforge [ guillaume ] |
Guillaume Laforge
made changes -
| Status | Open [ 1 ] | Closed [ 6 ] |
| Resolution | Fixed [ 1 ] |