Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
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]