require in 1.1.5 prefers files in the current directory despite loadpath (even 
with "." removed)
------------------------------------------------------------------------------------------------

                 Key: JRUBY-3173
                 URL: http://jira.codehaus.org/browse/JRUBY-3173
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.1.5
         Environment: Linux
            Reporter: Gennady Bystritsky
            Assignee: Thomas E Enebo


$ echo "puts 'GOT HERE!!!'" > thread.rb
$ jruby -v
jruby 1.1.5 (ruby 1.8.6 patchlevel 114) (2008-11-03 rev 7996) [i386-java]
$ jruby -e '$:.delete("."); puts *$:; require "thread"'
/quest/splex-home/gbystrit/local/jruby-1.1.5/lib/ruby/site_ruby/1.8
/quest/splex-home/gbystrit/local/jruby-1.1.5/lib/ruby/site_ruby
/quest/splex-home/gbystrit/local/jruby-1.1.5/lib/ruby/1.8
/quest/splex-home/gbystrit/local/jruby-1.1.5/lib/ruby/1.8/java
lib/ruby/1.8
GOT HERE!!!

While in 1.1.4, it would load the standard one:
$ echo "puts 'GOT HERE!!!'" > thread.rb
$ jruby -v
jruby 1.1.4 (ruby 1.8.6 patchlevel 114) (2008-08-28 rev 7570) [i386-java]
$ jruby -e '$:.delete("."); puts *$:; require "thread"'
/quest/splex-home/gbystrit/local/jruby-1.1.5/lib/ruby/site_ruby/1.8
/quest/splex-home/gbystrit/local/jruby-1.1.5/lib/ruby/site_ruby
/quest/splex-home/gbystrit/local/jruby-1.1.5/lib/ruby/1.8
/quest/splex-home/gbystrit/local/jruby-1.1.5/lib/ruby/1.8/java
lib/ruby/1.8




-- 
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


Reply via email to