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

MethodNode#getText can output incorrect modifiers

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

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.14, 3.0.8, 4.0.0-alpha-3
    • 4.0.0-beta-2, 2.5.16, 3.0.10
    • None
    • None

    Description

      The modifier printing code leveraged from MethodNode#getText does not consider the method context and prints "transient" for "def foo(... args) {}".

      Attachments

        Issue Links

        Activity

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

          People

            paulk Paul King
            emilles Eric Milles
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment