-
-
Notifications
You must be signed in to change notification settings - Fork 942
Closed
Milestone
Description
Since 1.7.14, require throws TypeError when $LOAD_PATH includes Pathname object. I ran into this error while running some legacy code after upgrading JRuby.
> echo 'puts :a' > a.rb
> rvm use jruby-1.7.13
> ruby -rpathname -e '$LOAD_PATH.unshift Pathname.new("."); require "a"'
a
> rvm use jruby-1.7.14
> ruby -rpathname -e '$LOAD_PATH.unshift Pathname.new("."); require "a"'
TypeError: can't convert Pathname into String
require at org/jruby/RubyKernel.java:1065
require at /Users/jg/.rvm/rubies/jruby-1.7.14/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55
(root) at -e:1
> rvm use ruby
> ruby -rpathname -e '$LOAD_PATH.unshift Pathname.new("."); require "a"'
a
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels