require './NonExistantRequiredFile' causes StringIndexOutOfBoundException instead of LoadError ----------------------------------------------------------------------------------------------
Key: JRUBY-1461 URL: http://jira.codehaus.org/browse/JRUBY-1461 Project: JRuby Issue Type: Bug Environment: Windows XP, with jDK 1.6.0 with both JRUby 1.0.1 and trunk version Reporter: Pat Cheng Assignee: Thomas E Enebo Attachments: testLoad.rb 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) -- 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