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

implicit type of catch parameter is written as Object

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.22, 5.0.0-alpha-9, 4.0.22
    • Compiler
    • None

    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: