You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (Jira)" <ji...@apache.org> on 2022/02/14 07:44:00 UTC
[jira] [Resolved] (GROOVY-10470) Update from Groovy 3 to 4.0.0 breaks existing code
[ https://issues.apache.org/jira/browse/GROOVY-10470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King resolved GROOVY-10470.
--------------------------------
Assignee: Paul King
Resolution: Information Provided
> Update from Groovy 3 to 4.0.0 breaks existing code
> --------------------------------------------------
>
> Key: GROOVY-10470
> URL: https://issues.apache.org/jira/browse/GROOVY-10470
> Project: Groovy
> Issue Type: Bug
> Components: groovy-runtime
> Affects Versions: 4.0.0
> Reporter: Alexander Veit
> Assignee: Paul King
> Priority: Major
>
> 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.
> {code:java}
> new AntBuilder()
> {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)