Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.1-beta-1
-
Fix Version/s: 1.1-beta-2
-
Component/s: groovy-jdk
-
Labels:None
-
Environment:WinXP. Groovy 1.1-BETA-1. JDK 1.5.0_06
-
Number of attachments :
Description
ClassLoader cl = getClass().getClassLoader();
def engine = new GroovyScriptEngine(["file://."]*.toURL() as URL[], cl);
engine.loadScriptByName("TestGroovy2").newInstance();
Exception in thread "main" java.lang.StackOverflowError
at groovy.util.GroovyScriptEngine.loadScriptByName(GroovyScriptEngine.java:283)
at groovy.util.GroovyScriptEngine.loadScriptByName(GroovyScriptEngine.java:283)
at groovy.util.GroovyScriptEngine.loadScriptByName(GroovyScriptEngine.java:283)
.......
Should be fixed in head, but I made the method deprecated as it calls a deprecated method. I am not sure what the recomended alternative would be.