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

Use of a dynamic property inside a markup engine closure causes a VerifyError

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.4
    • 2.3.5
    • Templating
    • None

    Description

      The following template fails when xml is a variable from the model. Note that this only fails if used inside the div block. Outside of it, it runs fine.

      MarkupTemplateEngine engine = new MarkupTemplateEngine(new TemplateConfiguration())
              def template = engine.createTemplate '''
              div {
                  yield xml.file
              }
              '''
              def model = [xml: [file:['test']]]
              String rendered = template.make(model)
      

      Attachments

        Activity

          People

            melix Cédric Champeau
            melix Cédric Champeau
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: