Skip to content

Commit

Permalink
Revert "Classpath urls should still use expand_path to properly canon…
Browse files Browse the repository at this point in the history
…icalize the path. This fixes no reported issue"

This reverts commit 429149e.
  • Loading branch information
enebo committed Jan 7, 2014
1 parent 4465313 commit 39056c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/ruby/jruby/kernel/kernel.rb
Expand Up @@ -12,8 +12,8 @@ def require_relative(relative_arg)
# know about classpath: paths.
if file =~ /^classpath:(.*)/
dir = File.dirname($1)
dir = '' if dir == '.'
absolute_feature = "classpath:" + File.expand_path(relative_arg, dir)
dir = dir == '.' ? "" : dir + "/"
absolute_feature = "classpath:#{dir}#{relative_arg}"
else
absolute_feature = File.expand_path(relative_arg, File.dirname(file))
end
Expand Down

0 comments on commit 39056c6

Please sign in to comment.