Java raised exceptions fail to list JRuby caller method in the backtrace
------------------------------------------------------------------------

                 Key: JRUBY-3882
                 URL: http://jira.codehaus.org/browse/JRUBY-3882
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
    Affects Versions: JRuby 1.3, JRuby 1.1.5
         Environment: Ubuntu 8.10
            Reporter: Andrew Davey
            Priority: Minor
         Attachments: test_backtraces.rb.patch

When you have a begin/rescue block in ruby and you call some java code that 
raises an exception, the backtrace of the caught exception does not include the 
name of the calling ruby method.

I have attached a patch for the test case 'test_backtraces.rb'.

Steps to Reproduce

1. Create a ruby begin/rescue block that calls some java code
2. Get the java code to throw a RuntimeException
3. Catch the exception in your ruby rescue block
4. Output the caught exception's backtrace

What I expected to happen

I expected that the backtrace would include the name of the ruby method that 
called the java code that raised the exception.

What happened instead

Instead the backtrace did not include the name of the calling ruby method.

Additional Notes

I have not created many patches before so I am not 100% this patch is the 
_right_ way to do it.

-- 
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


Reply via email to