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

Stack overflow occurs when subclass overrides and then calls superclass method containing a closure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1-beta-2
    • 1.1-beta-3
    • None
    • None
    • Windows XP sp2, Eclipse 3.2, Eclipse Groovy Plugin 1.01, Grails 0.6

    Description

      The attached test case fails with a stack overflow when executed in either a Grails application, or in the Eclipse plugin environment. It does not fail when compiled and run directly from the groovy command line.

      The necessary conditions for the failure appear to be the following:

      • Superclass contains a method that takes an argument
      • Superclass implementation includes a closure that references the argument
      • Subclass overrides the method, and then calls the superclass method.

      Attachments

        1. groovyTest.zip
          0.6 kB
          jkranes

        Activity

          People

            blackdrag Jochen Theodorou
            jkranes jkranes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: