You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cat my_dir/helper.rb
puts "helper in my_dir"
$ cat other_dir/helper.rb
puts "helper in other_dir"
$ cat other_dir/test.rb
require_relative 'helper'
Jruby 1.7.14 test:
$ ruby -v
jruby 1.7.14 (1.9.3p392) 2014-08-27 d368971 on Java HotSpot(TM) 64-Bit Server VM 1.8.0_51-b16 +jit [linux-amd64]
$ ruby my_dir/test.rb
helper in my_dir
Jruby 9000 test:
$ ruby -v
jruby 9.0.0.0 (2.2.2) 2015-07-21 e10ec96 Java HotSpot(TM) 64-Bit Server VM 25.51-b03 on 1.8.0_51-b16 +jit [linux-amd64]
$ ruby my_dir/test.rb
helper in other_dir
The text was updated successfully, but these errors were encountered:
enebo
changed the title
require_relative Jruby9000 not consistent with Jruby1.7 with symbolic links
require_relative wrong in Jruby1.7 with symbolic links
Jul 23, 2015
I typed this in weirdly and quickly so the output is a little different but I believe this is a bug in 1.7. JRuby 9k matches MRI in both 2.2 and 1.9.3:
system ~/work/snippets 1699% mri22 my_dir/test.rb
OTHER HELP
system ~/work/snippets 1700% jruby my_dir/test.rb
OTHER HELP
system ~/work/snippets 1701% mri19 my_dir/test.rb
OTHER HELP
system ~/work/snippets 1702% ../jruby-1_7/bin/jruby my_dir/test.rb
Heling in mydir
Setup:
Folder hierarchy:
Contents:
Jruby 1.7.14 test:
Jruby 9000 test:
The text was updated successfully, but these errors were encountered: