Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-10396

Static import is not applied for custom println method since 2.5.1

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.1, 3.0.9
    • 2.5.16, 3.0.10, 4.0.0-rc-2
    • Compiler
    • None

    Description

      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

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            emilles Eric Milles
            Dave562 David Richter
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment