Skip to content

Support backtrace_locations with Java exceptions #9458

@kares

Description

@kares

JRuby had supported duck-typing of java.lang.Throwable hierarchy, to act like Ruby's Exception, for a long time.

There's java.lang.Throwable#backtrace which maps the Java stack-trace into an Array.

The backtrace_locations method are a later Ruby language feature and so wasn't considered for addiiton.
It would be desired to support backtrace_location with JRuby's Java integration as well, esp. since frameworks such as Rails might do rescue Exception (which catched Java throwables) and assume backtrace_locations exists.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions