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

Update from Groovy 3 to 4.0.0 breaks existing code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Information Provided
    • 4.0.0
    • None
    • groovy-runtime
    • None

    Description

      After updating from Groovy 3 to 4.0.0 scripts that use AntBuilder without an import statement no longer work.

      This is probably caused by missing default includes for groovy.ant.* or groovy.ant.AntBuilder.

      The same problem exists for XmlSlurper and XmlParser.

      Example: The script below works with Groovy 3.0.9 but not with 4.0.0.

      new AntBuilder()
      

      Attachments

        Activity

          People

            paulk Paul King
            veita Alexander Veit
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: