Skip to content

Support backtrace_locations with Java exceptions #9488

Closed

Description

@headius

Original: #9458.

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.

Activity

  1. added this to the JRuby 10.1.1.0 milestone on Jun 11, 2026
  2. headius commented on Jun 11, 2026

    @headius
    MemberAuthor

    Fixed by #9461.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions