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

StackOverflowError running unit test

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0-JSR-6
    • Fix Version/s: 1.5
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: