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

MarkupBuilder fails for embedded groovy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0-beta-4
    • None
    • None
    • Windows 2003

    Description

      I've got the following script:
      ------------------------------
      package groovy.xml

      b = new MarkupBuilder()

      b.root1(a:5, b:7) {
      elem1('hello1')
      elem2('hello2')
      elem3(x:7)
      }
      ------------------------------

      If I run this script from the command-line call of groovy, it works great. If I run this script from an embedded groovy, I get the following error:

      groovy.lang.MissingMethodException: No such method:
      root1 for class: b with arguments: [[a:5, b:7], groovy.xml.ScriptEngine_123$1@15
      ddf5]

      Attachments

        Activity

          People

            jstrachan James Strachan
            nstimm Sean Timm
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: