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

Groovy/Grails Joint Build: Single char property name not resolving like they used to. Resulting in MPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.5.7
    • 1.5.7
    • None
    • None

    Description

      A change to Groovy is causing a test to fail in the Grails build. See

      http://bamboo.ci.codehaus.org/browse/GRAILS-GROOVY15GRAILS-119/test/org.codehaus.groovy.grails.webflow.FlowTagInvokationTests%3AtestNamespacedTagInvokation

      In particular this test is failing:

      http://fisheye.codehaus.org/browse/grails/trunk/grails/test/groovy/org/codehaus/groovy/grails/webflow/FlowTagInvokationTests.groovy?r=5430

      The code that is no longer working can be seen on line 59:

                          [theLink:g.link(controller:"foo", action:"bar")]
      

      Note the use of the "g." prefix this used to be dealt with by changing the closure delegate to an instance of this class:

      http://fisheye.codehaus.org/browse/grails/trunk/grails/src/groovy/org/codehaus/groovy/grails/webflow/engine/builder/AbstractDelegate.groovy?r=5430

      Notice the implementation of getProperty which resolved the single character "g" into an object that can invoke tags (namespaced tags) in Grails.

      It seems that the closure is no longer hitting this getProperty method.

      Attachments

        Issue Links

          Activity

            People

              blackdrag Jochen Theodorou
              graemerocher Graeme Rocher
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: