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

Empty try skips finally

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-4
    • 1.0-beta-5
    • None
    • None

    Description

      This code

      try {
      println("try");
      } finally {
      println("finally");
      }

      prints

      try
      finally

      this code prints nothing

      try {
      //println("try");
      } finally {
      println("finally");
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            lorenzo lorenzo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: