[
https://issues.apache.org/jira/browse/GROOVY-10396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17450696#comment-17450696
]
Eric Milles commented on GROOVY-10396:
--------------------------------------
The class {{groovy.lang.Script}} provides an instance method
{{println(Object)}} so that will be used instead of any static imports. You
will need to qualify the method call to direct to your println.
> Static import is not applied for custom println method since 2.5.1
> ------------------------------------------------------------------
>
> Key: GROOVY-10396
> URL: https://issues.apache.org/jira/browse/GROOVY-10396
> Project: Groovy
> Issue Type: Bug
> Components: Compiler
> Affects Versions: 2.5.1, 3.0.9
> Reporter: David Richter
> Priority: Major
>
> Static import for custom implementation of println method is not used neither
> as ImportCustomizer of directly written in the script since Groovy version
> 2.5.1
> Maybe caused by: https://issues.apache.org/jira/browse/GROOVY-8389
> Reproducer project: https://github.com/Dave562CZ/groovy-import-bug
--
This message was sent by Atlassian Jira
(v8.20.1#820001)