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

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.5.7
    • Fix Version/s: 1.5.7
    • Component/s: None
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: