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

StackOverflowError running unit test

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-6
    • 1.5
    • None
    • None

    Description

      When the attached unit test is run via:

      groovy TestClass.groovy

      then it works correctly. However, if it is compiled using groovyc and then run via the JUnit TestRunner, it throws a StackOverflowError:

      java -cp ... junit.textui.TestRunner TestClass

      It has something to do with attempting to call a method with the wrong number of arguments using the object.'method'() syntax.

      Attachments

        1. TestClass.groovy
          0.2 kB
          Peter Ledbrook

        Activity

          People

            paulk Paul King
            pledbrook Peter Ledbrook
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: