IllegalArgumentException in two argument form of File.expand_path on Windows
----------------------------------------------------------------------------

                 Key: JRUBY-2143
                 URL: http://jira.codehaus.org/browse/JRUBY-2143
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1RC2
         Environment: Windows XP Pro, Java 1.5
            Reporter: Daniel Berger
            Priority: Minor


JRuby chokes on relative dirstrings in the File.expand_path method. This code 
demonstrates the problem:
{noformat}
p File.expand_path("../../bin", "/tmp/x")
{noformat}
MRI returns "C:/bin" while JRuby blows up. Note that I'm not sure when MRI 
started automatically prepending "C:/" in cases like this, but I think it was 
1.8.5.

-- 
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


Reply via email to