harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Li Jing Qin (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-6252) [classlib][luni] File.getCanonicalPath behavior wrong according to the RI
Date Mon, 29 Jun 2009 09:56:47 GMT
[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
         Environment: linux
            Reporter: Li Jing Qin

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