On Mon, Aug 17, 2009 at 2:16 AM, Andy Davey<as.da...@gmail.com> wrote:
> I am having problems with backtraces between ruby code and a java exception.
> The following test will fail:
> import org.jruby.test.TestHelper
> def test_java_backtrace
>   TestHelper.throwTestHelperException
> rescue NativeException => ex
>   backtrace = ex.backtrace.join("\r\n")
>   if (!backtrace.include?("test_java_backtrace"))
>     flunk("test_java_backtrace not in backtrace")
>   end
> end
> Is there a different way or a setting that I can use to ensure that the ruby
> method is included in the backtrace?
> Not having the ruby method that called the offending java code makes
> debugging my rails application difficult. It is very hard to find out which
> controller + action was called that caused a domain level exception.

Sounds like a bug to me, and at the least should require further
investigation. Would you mind filing one with this test case at
http://jira.codehaus.org/browse/JRUBY?

Thanks,
/Nick

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to