Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-709

println error reporting not correct

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.0-beta-10
    • 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)

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            russel Dr. Russel Winder
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: