Java exceptions do not return the wrapped exception when getStackTrace is called --------------------------------------------------------------------------------
Key: JRUBY-2673 URL: http://jira.codehaus.org/browse/JRUBY-2673 Project: JRuby Issue Type: Bug Components: Java Integration Affects Versions: JRuby 1.2 Environment: OSX 10.5, Jruby trunk Reporter: David Koontz Fix For: JRuby 1.2 Attachments: java_exception_bug.rb I have only validated this behavior when using Thread.setDefaultUncaughtExceptionHandler (the test case is attached). A workaround for this is to call .cause on the exception object. So instead of exception.stack_trace you would do exception.cause.stack_trace. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email