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

Infinite loop causes StackOverflow retrieving MetaClass for Java class breaking Grails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.1-rc-2
    • 1.1-rc-3
    • None
    • None

    Description

      Grails currently doesn't work with latest Groovy. The class

      http://fisheye.codehaus.org/browse/grails/trunk/grails/src/commons/org/codehaus/groovy/grails/cli/GrailsScriptRunner.groovy?r=HEAD

      Produces a StackOverflowError on line 54

      grailsHome = ANT.antProject.properties.'env.GRAILS_HOME'

      Groovy attempts to retrieve the MetaClass for Ant's Project class, but it never comes back, resulting in the stack overflow

      This is before Grails has done any meta class magic and before even Gant has loaded. It is 5 lines into the main method of Grails' GrailsScriptRunner class that makes the "grails" command work

      Attachments

        Activity

          People

            ait Alex Tkachman
            graemerocher Graeme Rocher
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: