I added this line to test/testLoad.rb
test_exception(LoadError) { require './NonExistantRequriedFile'}
fails with:
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(Unknown Source)
at org.jruby.runtime.load.LoadService.smartLoad(LoadService.java:285)
at org.jruby.runtime.load.LoadService.require(LoadService.java:344)
at org.jruby.RubyKernel.require(RubyKernel.java:671)
at org.jruby.RubyKernelInvoker$require_method_1_0.call(Unknown Source)
at org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:154)
at org.jruby.runtime.CallAdapter$DefaultCallAdapter.call(CallAdapter.java:107)
at test_load._file_(test_load.rb:1)
at test_load.load(test_load.rb)
at org.jruby.Ruby.runScript(Ruby.java:562)
at org.jruby.Ruby.runNormally(Ruby.java:484)
at org.jruby.Ruby.runFromMain(Ruby.java:409)
at org.jruby.Main.runInterpreter(Main.java:223)
at org.jruby.Main.runInterpreter(Main.java:179)
at org.jruby.Main.run(Main.java:121)
at org.jruby.Main.main(Main.java:96)