harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Regis Xu (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-5987) [classlib][luni] - different behavior with RI when file path contains "\\" in Linux
Date Mon, 06 Oct 2008 11:13:44 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-5987?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Regis Xu updated HARMONY-5987:

    Attachment: HARMONY-5987.v2.diff

this patch contains the fix and regression tests. And add a new file modules/luni/src/test/api/unix/org/apache/harmony/luni/tests/java/io/UnixFileTest.java
to test the unix only behaviors

> [classlib][luni] - different behavior with RI when file path contains "\\" in Linux
> -----------------------------------------------------------------------------------
>                 Key: HARMONY-5987
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5987
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>    Affects Versions: 5.0M7
>            Reporter: Regis Xu
>             Fix For: 5.0M8
>         Attachments: HARMONY-5987.diff, HARMONY-5987.v2.diff
> Consider the test:
>         File file = new File("d1\\d2");
>         file.mkdirs();
> RI create a directory named "d1\d2", while Harmony create two directories "d1" and "d1/d2",
seems RI doesn't covert windows file separator char "\\" to system separator char on Linux,
> spec says nothing about it. I quickly navigate the source, found we have a method fixSlashes
in java.io.File, which convert "\\" or "/" to system separator char, so  it may be intended
or a 
> feature of harmony?

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message