[ 
https://issues.apache.org/jira/browse/GROOVY-9585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul King updated GROOVY-9585:
------------------------------
    Labels: breaking  (was: )

> CompilerConfiguration copy constructor does not copy compilation customizers
> ----------------------------------------------------------------------------
>
>                 Key: GROOVY-9585
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9585
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: Eric Milles
>            Priority: Minor
>              Labels: breaking
>
> Consider the following:
> {code:groovy}
> import org.codehaus.groovy.control.*
> import org.codehaus.groovy.control.customizers.*
> def config = new CompilerConfiguration()
> config.addCompilationCustomizers(new ImportCustomizer().tap {
>   addStarImport('groovy.transform')
> })
> def clone = new CompilerConfiguration(config)
> assert clone.getCompilationCustomizers().size() == 1
> {code}
> Trying to copy from a base config (like one set up by STC and SC unit tests) 
> results in missing the compilation customizers.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to