Issue Type: Bug Bug
Affects Versions: JRuby 1.6.7
Assignee: Unassigned
Components: Core Classes/Modules
Created: 01/Sep/12 5:24 PM
Description:

This should work, I think:

irb(main):001:0> File.write 'some.jar.rb', ''
=> 0
irb(main):002:0> require './some.jar'
LoadError: no such file to load -- ./some
	from org/jruby/RubyKernel.java:1018:in `require'
	from /Users/uwe/workspace/jruby/jruby/lib/ruby/shared/rubygems/custom_require.rb:36:in `require'
	from (irb):2:in `evaluate'
	from org/jruby/RubyKernel.java:1064:in `eval'
	from org/jruby/RubyKernel.java:1389:in `loop'
	from org/jruby/RubyKernel.java:1172:in `catch'
	from org/jruby/RubyKernel.java:1172:in `catch'
	from /Users/uwe/workspace/jruby/jruby/bin/jirb:13:in `(root)'

I realize JAR files are a special case, but if it doesn't exist, the standard Ruby behaviour should be followed and we should try to load a file with ".rb" appended.

Right?

Environment: This is in use on Ruboto where we unpack JAR contents and add dummy Ruby sources to satisfy require statements for the jars. Is does however affect all platforms on which JRuby runs (Tested on OS X Mountain Lion).
Fix Versions: JRuby 1.7.0.RC1
Project: JRuby
Priority: Major Major
Reporter: Uwe Kubosch
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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

Reply via email to