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

Finally executes twice on NPE while casting method result

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

Details

    Description

      Follwing scriplet prints 'in finally' twice:

      f();

      int f() {

      try

      { return null }

      finally

      { println 'in finally' }

      }

      Attachments

        Activity

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

          People

            asteingress Andre Steingress
            salaev Sergey Alaev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment