Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
Debian GNU/Linux Testing using Groovy CVS (20050119) on JDK1.5
Description
The script:
#! /usr/bin/env groovy
println("Hello %s\n", "world") ;
produces the output (well actually it produces seven or eight more screenfulls but there is no point in just filling the report up with it as there is clearly an infinite lookup loop of some sort):
Exception in thread "main" java.lang.StackOverflowError
at java.security.AccessController.doPrivileged(Native Method)
at groovy.lang.Closure.<init>(Closure.java:105)
at org.codehaus.groovy.runtime.MethodClosure.<init>(MethodClosure.java:24)
at groovy.lang.MetaClass.getProperty(MetaClass.java:648)
at groovy.lang.MetaClass.invokeMethod(MetaClass.java:323)
at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:125)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:95)
at org.codehaus.groovy.runtime.MethodClosure.call(MethodClosure.java:33)
at groovy.lang.MetaClass.invokeMethod(MetaClass.java:327)
at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:125)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:95)
at org.codehaus.groovy.runtime.MethodClosure.call(MethodClosure.java:33)
at groovy.lang.MetaClass.invokeMethod(MetaClass.java:327)
at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:125)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:95)
at org.codehaus.groovy.runtime.MethodClosure.call(MethodClosure.java:33)
at groovy.lang.MetaClass.invokeMethod(MetaClass.java:327)
at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:125)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:95)
at org.codehaus.groovy.runtime.MethodClosure.call(MethodClosure.java:33)
at groovy.lang.MetaClass.invokeMethod(MetaClass.java:327)
at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:125)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:95)
at org.codehaus.groovy.runtime.MethodClosure.call(MethodClosure.java:33)
at groovy.lang.MetaClass.invokeMethod(MetaClass.java:327)