IndexOutOfBoundsException in Dir.glob_helper for file: path
-----------------------------------------------------------
Key: JRUBY-5602
URL: http://jira.codehaus.org/browse/JRUBY-5602
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.6
Reporter: peter royal
Assignee: Thomas E Enebo
in Dir.glob_helper, 'dir' ends up being the string
{code}file:/path/to/rubygems/specifications{code}
this matches _isJarFilePath_, but since there is no ! in the string, ix is the
length of the string, which means line 676 when it tries to get the portion
before a non-existent bang passes a -1 length to newStringFromUTF8
{code}
org.jruby.exceptions.RaiseException: (LoadError) load error:
active_support/vendor -- java.lang.IndexOutOfBoundsException: null
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1037)
at
Kernel.require(file:/path/to/jruby/jruby-complete-1.6.0.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29)
at
#<Class:0x12f78743b>.(root)(/path/to/rubygems/gems/activesupport-2.3.3/lib/active_support.rb:54)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1037)
at
Kernel.require(/path/to/rubygems/gems/activesupport-2.3.3/lib/active_support.rb:29)
at
#<Class:0x12f78743b>.(root)(./src/test/ruby/../../main/ruby/helper.rb:49)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1037)
at
#<Class:0x12f78743b>.(root)(./src/test/ruby/../../main/ruby/helper.rb:4)
at org.jruby.RubyKernel.load(org/jruby/RubyKernel.java:1062)
at JRubyTestRunner.initialize(./src/test/ruby/server_configs_test.rb:18)
at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1572)
at JRubyTestRunner.initialize(/jruby_test_runner.rb:18)
at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1572)
at JRubyTestRunner.initialize(jruby_test_runner.rb:17)
at #<Class:0x12f78743b>.(root)(<script>:2)
{code}
--
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