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

InvokerInvocationException not being unwrapped

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

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.5
    • 2.1.0-beta-1
    • Static compilation
    • Ubuntu 10.04 x64

    Description

      When methods compiled static are mixed with methods not compiled static and calling the closure, InvokerInvocationException is not unwrapped. Code depending on original Exception won't work.

      See attached Groovy class.

      If compiled with 2.0.5, following output should be printed

      First: WRONG
      Second: WRONG

      If all static compilations are disabled, everything is ok

      First: OK
      Second: OK

      Attachments

        Activity

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

          People

            melix Cédric Champeau
            musketyr Vladimír Oraný
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment