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

Cannot catch imported exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0-beta-10
    • None
    • None
    • Version: 1.0-beta-6-SNAPSHOT JVM: 1.5.0-beta2-b51

    Description

      code

      ===
      import java.io.*;

      def g() {
      throw new IOException();
      }

      try {
      g();
      } catch (IOException e) {
      println "caught";
      }
      ==

      should print "caught", prints long stack trace :-/

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            yozh Stepan Koltsov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: