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

InvokerInvocationException not being unwrapped

    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

        1. GaelykTemplateServlet.groovy
          2 kB
          Vladimír Oraný

        Activity

          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: