You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2021/11/30 17:16:00 UTC

[jira] [Resolved] (GROOVY-10396) Static import is not applied for custom println method since 2.5.1

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

Eric Milles resolved GROOVY-10396.
----------------------------------
    Fix Version/s: 4.0.0-rc-2
       Resolution: Fixed

https://github.com/apache/groovy/commit/ff0f23dad7011e8f006a666b5cf9bece538f689d

> 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
>            Assignee: Eric Milles
>            Priority: Major
>             Fix For: 4.0.0-rc-2
>
>
> 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
> The problem is mainly inside static methods as in instance methods there are different ways to achieve having custom println implementation.
> 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)