jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • groovy
  • GROOVY-1788

Can't execute Thread.setDefaultUncaughtExceptionHandler

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.0
  • Fix Version/s: 1.1-beta-1
  • Component/s: None
  • Labels:
    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

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
blackdrag blackdrag added a comment - 26/Apr/07 3:10 PM

fixed

Show
blackdrag blackdrag added a comment - 26/Apr/07 3:10 PM fixed

People

  • Assignee:
    blackdrag blackdrag
    Reporter:
    Andres Gonzalez
Vote (0)
Watch (0)

Dates

  • Created:
    21/Mar/07 7:09 AM
    Updated:
    26/Apr/07 3:10 PM
    Resolved:
    26/Apr/07 3:10 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.