harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Varlamov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-6252) [classlib][luni] File.getCanonicalPath behavior wrong according to the RI
Date Wed, 08 Jul 2009 01:45:14 GMT

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

Alexey Varlamov updated HARMONY-6252:

    Component/s: Classlib

> [classlib][luni] File.getCanonicalPath behavior wrong according to the RI
> -------------------------------------------------------------------------
>                 Key: HARMONY-6252
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6252
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: linux
>            Reporter: Li Jing Qin
>         Attachments: FileCanonical.v2.diff, FileTest.java, mkTestDir.sh
>   Original Estimate: 72h
>  Remaining Estimate: 72h
> Suppose there are some symlink: A --> B --> C. If we delete C, breaking the link,
A.getCanonicalPath should return A itself. B.getCanonicalPath should return B itself.
> Also we have problems when the file got trailing dots. Details in my test case file.
> I have investigated the code. The policy seems very odd to me. So I have rewrite the
parse cause, according to the linux path resolution.
> Three files are attached.
> 1. The diff file
> 2. mkTestDir.sh   create the symbol link under the /tmp/hydirtest
> 3. FileTest.java    Some test case I wrote
> This patch has passed all testcase under module luni on both Ubuntu and windows xp. 

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

View raw message