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

Can't execute Thread.setDefaultUncaughtExceptionHandler

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0
    • 1.1-beta-1
    • None
    • None

    Description

      Trying to do something like this in a groovy script:

      Thread.setDefaultUncaughtExceptionHandler(
      {thread,ex -> log.error("Error! thread=${thread}", ex)}
      as Thread.UncaughtExceptionHandler)

      would get:

      unable to resolve class Thread.UncaughtExceptionHandler

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            andresgr Andres Gonzalez
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: