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

implicit type of catch parameter is written as Object

    XMLWordPrintableJSON

Details

    Description

      Consider the following:

      void test(args) {
        try {
          args.name
        } catch (e) {
          print(e)
        }
      }
      

      Set a breakpoint within the catch block and try to evaluate an expression with "e" like: e.printStackTrace()

      The debugger complains that "printStackTrace" is not a method of java.lang.Object.

      Attachments

        Activity

          People

            emilles Eric Milles
            emilles Eric Milles
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: