[
https://issues.apache.org/jira/browse/GROOVY-10470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17487378#comment-17487378
]
Paul King commented on GROOVY-10470:
------------------------------------
It's not really "changed default includes". They stayed the same;
"groovy.util.*" being the relevant one here. It is just that it no longer
applies to the new class and we intentionally (after discussion) didn't add a
new one.
> 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
> 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)