[1.9] Dir#[] doesn't convert Pathname args to String ----------------------------------------------------
Key: JRUBY-5399 URL: http://jira.codehaus.org/browse/JRUBY-5399 Project: JRuby Issue Type: Bug Components: Ruby 1.9 Affects Versions: JRuby 1.6RC1, JRuby 1.6RC2 Environment: jruby 1.6.0.RC1 (ruby 1.9.2 trunk 136) (2011-01-10 769f847) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_22) [darwin-x86_64-java] Reporter: Micah Alles Assignee: Thomas E Enebo Attachments: dir_converts_pathname_to_string_test.rb {{Dir#[]}} does not accept a {{Pathname}} as a parameter. It appears to be attempting to convert the {{Pathname}} to a {{String}}, but is unable to do so successfully: {code} TypeError: can't convert Pathname into String org/jruby/RubyDir.java:170:in `aref' {code} This was found when attempting to run specs in a rails 3 project, as the default {{spec/spec_helper.rb}} uses {{Dir#[]}} with a {{Pathname}} argument. A test/unit testcase for this issue is attached. This issue only occurs when enabling 1.9 support with --1.9. This test passes on MRI 1.9.2 and JRuby 1.6RC1 --1.8. -- 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