Issue Type: Bug Bug
Affects Versions: JRuby 1.7.2
Assignee: Thomas E Enebo
Created: 18/Feb/13 1:39 AM
Description:

Example of weird behavior:

>> File.expand_path("file://foo.jar!")
=> "file://foo.jar!/home/jls/projects/logstash"

Situation: I package ffi-rzmq in a jar. It has a line of code like this:

  LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
  • _FILE_ in this case is "file:///whatever/logstash.jar!/ffi-rzmq.rb".
  • File::dirname(_FILE_) correctly returns "file:///whatever/logstash.jar!"
  • File::expand_path(...) on that strangely joins that with $PWD (or appears to do something of similar effect).

Expected:

  • File::expand_path("file:///whatever/logstash.jar!") to return exactly the string given since no expansion needs to occur.

Work around:

  • I can monkeypatch File::expand_path to avoid this behavior, so it is low priority for me.
Project: JRuby
Priority: Major Major
Reporter: Jordan Sissel
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