File and FileTest methods should use to_path to coerce non-string parameters
----------------------------------------------------------------------------
Key: JRUBY-3577
URL: http://jira.codehaus.org/browse/JRUBY-3577
Project: JRuby
Issue Type: Bug
Components: Ruby 1.9
Affects Versions: JRuby 1.2
Reporter: Charles Oliver Nutter
Assignee: Thomas E Enebo
Fix For: JRuby 1.3
There is a new Pathname type in 1.9 that has a to_path method, and as a result
most File and FileTest methods that take paths can also take objects that
implement to_path. We have numerous places where we just do a string coercion
that now need to first attempt a to_path invocation.
I fixed several cases in 65691e9 but more likely remain and I have not created
any specs yet. I fixed the ones necessary to get 1.9 mode installing gems.
Leaving open for specs and additional fixes.
--
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