Skip to content

"LoadError: no such file to load" if IOException is raised in loaded file #4194

@olleolleolle

Description

@olleolleolle

Environment

jruby 9.1.5.0 (2.3.1) 2016-09-07 036ce39 Java HotSpot(TM) 64-Bit Server VM 25.92-b14 on 1.8.0_92-b14 +jit [darwin-x86_64]

Darwin xxxxx.local 15.6.0 Darwin Kernel Version 15.6.0: Mon Aug 29 20:21:34 PDT 2016; root:xnu-3248.60.11~1/RELEASE_X86_64 x86_64

But we originally had the issue on Linux too (same JRuby version).

Expected Behavior

To see Java::JavaIo::IOException and the stacktrace

Actual Behavior

LoadError: no such file to load -- test.rb

Reproduction

https://gist.github.com/olleolleolle/c56a31f32401d944c87d6c37a82c0f14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions