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

try block with finally having nested try causes NPE during compilation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.6
    • 2.4.0-rc-1
    • Compiler
    • None
    • Windows 7, JVM 6

    Description

      This bug was not present in versions junior to 1.8.6. The code structure is as follows:

      try {
          try {
          } catch(ddd) {
          }
      } catch (bbb) {
      } finally {
          return null
      }
      

      The second try block will cause NPE. The message will be "NPE while processing <prog_unit_name>".

      Attachments

        Activity

          People

            Unassigned Unassigned
            borgold Boris Goldstein
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: